thomas981
03-09-2006, 11:02 PM
Hi!
I am wondering how it is possible to access OpenGL State variables that were normally enabled/disabled via the standard glEnable/glDisable functions.
Namely these are GL_FOG and GL_LIGHTING (and GL_LIGHTn...)
If this is not possible, what is the best way to handle this access? I assume handling it via an uniform variable passed to the specific vertex/fragment programs may be the easiest way.
Whats up with passing the data when compiled into a display list? When setting an uniform variable while compiling a display list, is it passed/changed when the display list is called?
Thanks,
Thomas
I am wondering how it is possible to access OpenGL State variables that were normally enabled/disabled via the standard glEnable/glDisable functions.
Namely these are GL_FOG and GL_LIGHTING (and GL_LIGHTn...)
If this is not possible, what is the best way to handle this access? I assume handling it via an uniform variable passed to the specific vertex/fragment programs may be the easiest way.
Whats up with passing the data when compiled into a display list? When setting an uniform variable while compiling a display list, is it passed/changed when the display list is called?
Thanks,
Thomas