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

GetClearValue, DrawBegin