View Full Version : Where can I find each constant value?

12-30-2010, 10:24 AM
I'd like to find a list of all GL constants and their values, like GL_TEXTURE_2D and GL_LINE_LOOP.

I've searched the site and I seem to only be able to find their descriptions, not their actual value.

carsten neumann
12-30-2010, 10:42 AM
On this page (http://www.opengl.org/registry/) there is a section "Enumerant and Function Registry" which has a bunch of .spec files that contain the values.
Another source is the gl.h header on your system ;)

12-30-2010, 12:37 PM
Thank you!