I’m doing a workshop about visibility checking in a 3d scene, and i got some questions to ask about using glut and glMinmax.
in the final step i basically draw some white polygons on a squared black bitmap and i need to know whether i’ve covered all the square or there are still black pixels visible.
i got glut to open a window and i drew the polygons in that window, but now i got some problems:
on the line:
glMinmax(GL_MINMAX, GL_RGB, GL_FALSE);
VC++ gives me glMinmax undefined and GL_MINMAX undeclared. i think i got the latest glut version, maybe i have an old opengl? how do i fix this?
how can i draw the polygons not directly to the screen but only to a buffer, to do the glMinmax test on the buffer
with a window after i call glutMainLoop() the drawing function is the one i registred using glutDisplayFunc, but i only want to draw the polygons and then go back directly to my program without registering the keyboard function… only draw, find minmax and be over with it. is it possible?
thanks in advance