javascript - OpenGL method number value -


i have seen opengl codes written this:

glmatrixmode(gl_projection); glloadidentity(); glortho(1,1,1,1,1,-1); glmatrixmode(gl_modelview); 

and have seen opengl codes written this:

glenable(2896); gldisable(3042); 

notice number values in glenable() , gldisable() methods.

my real question is: have link website has list of every method or number value corresponds whichever mode putting in code? like, glenable(2896); mean?

the enum names , values live in gl.xml, off of main spec registry page.

given example of glenable(2896):

  1. 2896 in hex 0x0b50
  2. searching gl.xml value lands on

    <enum value="0x0b50" name="gl_lighting"/>

  3. which can see corresponds gl_lighting


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -