PDA

View Full Version : State question



dabeav
07-29-2002, 03:51 AM
Does anyone have a list of OpenGL States? I want to make sure to dissable everything that im not using by default in my code.
Currently I have
glEnable(GL_CULL_FACE);
glCullFace (GL_BACK) ;
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glDisable (GL_NORMALIZE);
glShadeModel(GL_SMOOTH);

I also have disabled fog, what else is there?
I have removed backfaces, removed normalizing, but I know there is more stuff that (generic) cards may have set as true. Any one have a list of all the states??

Bob
07-29-2002, 04:15 AM
Look in the specification, it has a list of all states (excluding extensions) and their initial state.

You don't have to explicitly disable everything you don't want, since the spec requires about everything to be disabled by default.

For extensions, look in the specification for each supported extensions. Extension specifications can be found in the extension registry (http://oss.sgi.com/projects/ogl-sample/registry/) .