View Full Version : State question

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
glCullFace (GL_BACK) ;
glDisable (GL_NORMALIZE);

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??

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/) .