template InfoCOpenGL::SetBackgroundColor

void SetBackgroundColor( float Red, float Green, float Blue );

void SetBackgroundColor( COLORREF Color );


Red, Green, Blue Specifies the red, green, blue components of the background color. The parameter values range is [0, 1]
Color Specifies the background color by way of the COLORREF structure


Use this method function to specify the background color of the OpenGL rendering context.

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

Note:The SetBackgroundColor  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