glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glOrtho(0, r.right, r.bottom, 0, -1, 1); glMatrixMode(GL_MODELVIEW); // glFrustum(-zoom * 1, zoom * 1, -zoom * 1, zoom * 1,1,-1); gluPerspective(1, 1, 1, 1); glEnable(GL_COLOR_LOGIC_OP); glLogicOp(GL_XOR); glColor4f(1.0f, 1.0f, 1.0f, 1.0f); glRecti( 10,10,lright-200,lbottom-200); glBegin (GL_LINES); glVertex2i (30,30); glVertex2i (70,30); glEnd(); glDisable(GL_COLOR_LOGIC_OP); glMatrixMode(GL_PROJECTION); glPopMatrix(); glMatrixMode(GL_MODELVIEW); SwapBuffers(DeviceContext);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)