Closed rogermc2 closed 7 years ago
The lighting API has been deprecated with OpenGL 3. You need to create an OpenGL 2 context in order to use that API, I guess.
OK, thanks. I'll look into OpenGL 3 lighting aspects which I currently know nothing about. The code I am trying to implement is probably OpenGL 2, so not only C++ to Ada but also OpenGL 2 to 3.
I can't get the following lighting functions to work:
They fail with:
The following from Mac OpenGL.Frameworks gl3.h seem OK? GLAPI void APIENTRY glDisable (GLenum cap); GLAPI void APIENTRY glEnable (GLenum cap); From Mac OpenGL.Frameworks gl.h:
define GL_LIGHTING_BIT 0x00000040
/ Enable / / GL_FOG / / GL_LIGHTING /
define GL_LIGHTING 0x0B50