glClear − clear buffers to preset values
void glClear( GLbitfield mask )
Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT.
glClear sets the bitplane area of the window to values previously selected by glClearColor, glClearIndex, glClearDepth, glClearStencil, and glClearAccum. Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using glDrawBuffer.
The pixel ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of glClear. The scissor box bounds the cleared region. Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by glClear.
glClear takes a single argument that is the bitwise OR of several values indicating which buffer is to be cleared.
The values are as follows:
Indicates the buffers currently enabled for color writing.
Indicates the depth buffer.
Indicates the accumulation buffer.
Indicates the stencil buffer.
The value to which each buffer is cleared depends on the setting of the clear value for that buffer.
If a buffer is not present, then a glClear directed at that buffer has no effect.
GL_INVALID_VALUE is generated if any bit other than the four defined bits is set in mask.
GL_INVALID_OPERATION is generated if glClear is executed between the execution of glBegin and the corresponding execution of glEnd.
with argument GL_ACCUM_CLEAR_VALUE
glGet with argument GL_DEPTH_CLEAR_VALUE
glGet with argument GL_INDEX_CLEAR_VALUE
glGet with argument GL_COLOR_CLEAR_VALUE
glGet with argument GL_STENCIL_CLEAR_VALUE
glClearAccum(3G), glClearColor(3G), glClearDepth(3G), glClearIndex(3G), glClearStencil(3G), glColorMask(3G), glDepthMask(3G), glDrawBuffer(3G), glScissor(3G), glStencilMask(3G)
More Linux Commands
Tcl_IsStandardChannel(3) - buffered I/O facilities using cha
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f
XCompositeQueryExtension(3) - X Composite Extension library
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s
TAP::Base(3pm) - Base class that provides common functionali
TAP::Base provides callback management. METHODS Class Methods callback Install a callback for a named event. get_time Return the current time using Time::HiRes
MIME::WordDecoder(3pm) - decode RFC 2047 encoded words to a
WARNING: Most of this module is deprecated and may disappear. It duplicates (badly) the function of the standard Encode module. The only function you should rel
Net::Server::Single(3pm) - Net::Server personality (ManPage)
This module offers no functionality beyond the Net::Server base class. This modules only purpose is to provide parallelism for the MultiType personality. See Ne
XkbAllocGeomSectionDoodads(3) - Allocate doodads that are sp
XkbAllocGeomSectionDoodads.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or mo
update-ca-certificates(8) - update system CA certificates...
update-ca-certificates is intended to keep the certificate stores of various components in sync with the system CA certificates. The canonical source of CA cert
grub2-ofpathname(8) find OpenBOOT path for a device.........
SEE ALSO grub-probe(8) The full documentation for grub-ofpathname is maintained as a Texinfo manual. If the info and grub-ofpathname programs are properly insta
xmlstarlet(1) - command line XML/XSLT toolkit (Man Page)....
XMLStarlet is a set of command line utilities (tools) which can be used to transform, query, validate, and edit XML documents and files using simple set of shel
wftopfa(1) - Convert a Wadalab base font to Postscript .PFA
This script invokes gs(1) to convert a Wadalab base font to Postscript .PFA (or .PFB) format. SEE ALSO gs(1) VERSION This document was last revised for Ghostscr
Tk_IsTopLevel(3) - retrieve information from Tk's local data
Tk_WindowId and the other names listed above are all macros that return fields from Tks local data structure for tkwin. None of these macros requires any intera
XLookupString(3) - handle keyboard input events in Latin-1
The XLookupKeysym function uses a given keyboard event and the index you specified to return the KeySym from the list that corresponds to the KeyCode member in