PDA

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



anotherFalseProphet
12-30-2010, 11: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, 11: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 ;)

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