BOOL GetLightingMode( void ); 

Return Value

The return value is TRUE if OpenGL lighting is enabled. The return value is FALSE if OpenGL lighting is disabled.


The method function retrieves the current threadís OpenGL rendering context lighting mode state.

The method function is a wrapper around the OpenGL glGetBooleanv function

Note:The GetLightingMode method function uses the current OpenGL rendering context. Ensure that the current rendering context is what you intend to use. Use wglMakeCurrent or DrawBeginmethod functions to set the current rendering context.

See Also

SetLightingMode, GetNumberOfLights, SetLightState, GetLightState, SetLightModelLocalViewer, GetLightModelLocalViewer