COpenGL::GetNumberOfLights

int GetNumberOfLights( void );

Return Value

The return value is the maximum number of lights available in the current threadís OpenGL rendering context

Remarks

Use this method function to determine the maximum number of lights available for the OpenGL rendering context.

The method function is wrapper around the OpenGL glGetIntegerv(GL_MAX_LIGHTS ) function.

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

See Also

SetLightingMode, GetLightingMode, SetLightState, GetLightState, SetLightModelLocalViewer, GetLightModelLocalViewer