I am writing an editor using GLUT 3.7.6 and a Geforce Quadro2 Pro (modified GTS 2).
The Programm should also supply a stereo-display. My Problem now is letting the program decide if it can use GLUT_STEREO or not.
The problem is, that glutCreateWindow exits with a fatal error, if the hardware doesnot support quad-buffering. On the other hand the glGetBooleanv(GL_STEREO,&isstereo) or glutget(…) do only work with a valid window created.
So how do I decide if I can do
glutInitDisplayMode(…| GLUT_STEREO)
or not?
Any sugestions out there?
p.s.: It would bei much easier if glutCreateWindow just returns an invalid handle if something goes wrong instead of exiting the whole Application.
I don’t think it’s possible to do this with GLUT but maybe if you tried the Platform Dependent extensions/Windowing System commands (e.g. GLX, WGL etc…)
I say! is it possible to mix WGL and GLUT commands?