BOOL GetLightState( int LightNumber );



Specifies a zero based index for the light

Return Value

TRUE if the light is turned on. FALSE if the light is turned off.


Use the GetLightState method function to determine the requested light on/off state.

The method function is a wrapper around the OpenGL glGetBooleanv function.

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

See Also

SetLightingMode, GetLightingMode, GetNumberOfLights,SetLightState, SetLightModelLocalViewer, GetLightModelLocalViewer