PDA

View Full Version : glLightModel*(...)



ThunderSoul
08-03-2005, 07:57 AM
I have the following line in my code:

glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);

, but GL_SINGLE_COLOR is an undeclared identifier. I am pretty sure I included all includes. They are:

#include <cmath>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>

What could be a solution to this problem?

Thank you,
-TS...

Shukun no Haifun
08-03-2005, 08:07 AM
What compiler are you using?

If it's a GCC compiler, are you sure you're linking the libraries in?

memfr0b
08-03-2005, 11:57 AM
Make sure you have headers for OpenGL 1.2 or later. Or get a copy of glext.h.

ThunderSoul
08-05-2005, 05:24 PM
I'm using Visual C++ 6.0 ...
It works for GCC compiling, but not for VSC++ 6.0 :\ I have rare opportunities to access a GCC compiler since I'm mostly at home and unable to reach the office computers. Hence I must use a Windows O/S.

Hlz
08-05-2005, 05:35 PM
http://oss.sgi.com/projects/ogl-sample/registry/

GL_SINGLE_COLOR is defined in glext.h