template
InfoCOpenGL::SetBackgroundColor![]()
void SetBackgroundColor( float Red, float Green, float Blue );
void SetBackgroundColor( COLORREF Color );
Parameters
| 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 |
Remarks
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
![]()
| © 2001 Solid Graphics, All rights reserved. |
| To view this site, we require use of either Netscape Navigator 4.0 or higher or Internet Explorer 4.0 or higher. |