PDA

View Full Version : Constant values



Noah
01-12-2001, 07:55 PM
I need the value of:

GL_LIGHT_MODEL_COLOR_CONTROL

and

GL_SEPARATE_SPECULAR_COLOR

sothat I can:

glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);

I need the values because I am not using C++ and I can't just #include the C OpenGL headers to get the constants so I need to declare them myself.

-Noah Desch

Elixer
01-12-2001, 08:21 PM
#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
#define GL_SINGLE_COLOR_EXT 0x81F9
#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA

BTW, just check the gl.h or glati.h (or whatever), and you can find the values.

Serge K
01-12-2001, 08:23 PM
www.opengl.org (http://www.opengl.org)
-> Developers (http://www.opengl.org/developers/index.html)
---> Documentation (http://www.opengl.org/developers/documentation/index.html)
-----> OpenGL Extensions (http://www.opengl.org/developers/documentation/extensions.html)
-------> OpenGL Extension Registry (http://oss.sgi.com/projects/ogl-sample/registry/)
---------> GL_EXT_separate_specular_color (http://oss.sgi.com/projects/ogl-sample/registry/EXT/separate_specular_color.txt)

Noah
01-12-2001, 09:12 PM
Originally posted by Elixer:

BTW, just check the gl.h or glati.h (or whatever), and you can find the values.

Thanks...They were not in there, I'm using version 1.0 of Apple's OpenGL SDK (which is the only version available right now) and it does not have these values.

-Noah Desch