Vlasko
03-05-2003, 09:38 AM
1.)I have a really simple program displaing 2 triangles but it won't display them if the z-coordinates are higher than 0 even when I set depth buffer
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
Where is the problem ?
2.)How can I set the screen coordinates ? I don't want to use floating point numbers frequently(-1,1,-1,1,-1,1).glOrtho doesn't seem to work
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
Where is the problem ?
2.)How can I set the screen coordinates ? I don't want to use floating point numbers frequently(-1,1,-1,1,-1,1).glOrtho doesn't seem to work