-> Click here to learn how to get live help <-
NAMEglClear - clear buffers to preset values
C SPECIFICATIONvoid f3glClearfP( GLbitfield fImaskfP )
DESCRIPTION%f3glClearfP sets the bitplane area of the window to values previously selected by %f3glClearColorfP, %f3glClearIndexfP, %f3glClearDepthfP, %f3glClearStencilfP, and %f3glClearAccumfP. Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using %f3glDrawBufferfP. The pixel ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of %f3glClearfP. The scissor box bounds the cleared region. Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by %f3glClearfP. %f3glClearfP takes a single argument that is the bitwise OR of several values indicating which buffer is to be cleared. The values are as follows:
NOTESIf a buffer is not present, then a %f3glClearfP directed at that buffer has no effect.
ERRORS%f3GL_INVALID_VALUEfP is generated if any bit other than the four defined bits is set in f2maskfP. %f3GL_INVALID_OPERATIONfP is generated if %f3glClearfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.
ASSOCIATED GETS%f3glGetfP with argument %f3GL_ACCUM_CLEAR_VALUEfP
%f3glGetfP with argument %f3GL_DEPTH_CLEAR_VALUEfP
%f3glGetfP with argument %f3GL_INDEX_CLEAR_VALUEfP
%f3glGetfP with argument %f3GL_COLOR_CLEAR_VALUEfP
%f3glGetfP with argument %f3GL_STENCIL_CLEAR_VALUEfP
SEE ALSO%f3glClearAccum(3G)fP, %f3glClearColor(3G)fP, %f3glClearDepth(3G)fP, %f3glClearIndex(3G)fP, %f3glClearStencil(3G)fP, %f3glColorMask(3G)fP, %f3glDepthMask(3G)fP, %f3glDrawBuffer(3G)fP, %f3glScissor(3G)fP, %f3glStencilMask(3G)fP