PDA

View Full Version : Where are constant values specified?



TopsceneGuy
10-18-2007, 12:20 PM
I've found extension header files that define OGL 2.0 constants, e.g.
#define GL_POINT_SPRITE 0x8861

Is there a master document that specifies that GL_POINT_SPRITE must be 0x8661? I didn't see anything in the OGL 2.0 spec. How do vendors agree on a particular hex value?

Thanks.

Korval
10-18-2007, 12:53 PM
I didn't see anything in the OGL 2.0 spec.It's definitely in there somewhere.

Stephen A
10-18-2007, 03:04 PM
http://www.opengl.org/registry

Take a look at the .spec files.

TopsceneGuy
10-18-2007, 03:50 PM
Thanks. That's very interesting.

I'm pretty sure it's not in the spec, Korval.

V-man
10-19-2007, 02:03 AM
Not everything is in the registry since not everything is part of the extension. Think of GL 1.0, 1.1, 2.0 (shaders)
I guess gl.h and glext.h + those spec files are it.