Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: State question

  1. #1
    Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    289

    State question

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

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,982

    Re: State question

    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 .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •