COpenGL::SetClearValue![]()
void SetClearValue( GLbitfield bfMask );
Parameters
| bfMask |
Specifies the value the COpenGL object uses internally as the OpenGL glClear function parameter. The parameter can be a combination of the following values : GL_COLOR_BUFFER_BIT The buffers currently enabled for color writing. GL_DEPTH_BUFFER_BIT The depth buffer. GL_ACCUM_BUFFER_BIT The accumulation buffer. GL_STENCIL_BUFFER_BIT The stencil buffer. |
Remarks
The COpenGL object internally calls the OpenGL glClear function during the DrawBegin method function call. The SetClearValue method function can be used to specify which OpenGL buffers will be cleared by the DrawBegin method function.
The default COpenGL object value used to clear OpenGL buffers is GL_COLOR_BUFFER_BIT.
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. |