COpenGL::GetLightModelLocalViewer

BOOL GetLightModelLocalViewer( void );

Return Value

TRUE if specular reflections angles are computed according to the current eye position. FALSE if specular reflection angles are computed as if the eye were at an infinite distance.

Remarks

Use the GetLightModelLocalViewer method function to inquire how specular reflections are computed. For more information see the OpenGL glLightModel function documentation.

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

Note:The GetLightModelLocalViewer 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, GetLightState, SetLightModelLocalViewer