table of contents
GLCLEAR(3G) | [FIXME: manual] | GLCLEAR(3G) |
NAME¶
glClear - clear buffers to preset valuesC SPECIFICATION¶
void
glClear(GLbitfield mask);
PARAMETERS¶
maskBitwise OR of masks that indicate the buffers
to be cleared. The three masks are GL_COLOR_BUFFER_BIT,
GL_DEPTH_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT.
DESCRIPTION¶
Indicates the buffers currently enabled for
color writing.
GL_DEPTH_BUFFER_BIT
Indicates the depth buffer.
GL_STENCIL_BUFFER_BIT
Indicates the stencil buffer.
The value to which each buffer is cleared depends on the setting of the clear
value for that buffer.
NOTES¶
If a buffer is not present, then a glClear directed at that buffer has no effect.ERRORS¶
ASSOCIATED GETS¶
SEE ALSO¶
COPYRIGHT¶
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.05/30/2012 | [FIXME: source] |