GLCLEAR



GLCLEAR

NAME
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO

NAME

glClear − clear buffers to preset values

C SPECIFICATION

void glClear( GLbitfield mask )

PARAMETERS

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.

DESCRIPTION

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:

GL_COLOR_BUFFER_BIT

Indicates the buffers currently enabled for color writing.

GL_DEPTH_BUFFER_BIT

Indicates the depth buffer.

GL_ACCUM_BUFFER_BIT

Indicates the accumulation 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

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.

ASSOCIATED GETS

glGet 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

SEE ALSO

glClearAccum(3G), glClearColor(3G), glClearDepth(3G), glClearIndex(3G), glClearStencil(3G), glColorMask(3G), glDepthMask(3G), glDrawBuffer(3G), glScissor(3G), glStencilMask(3G)



More Linux Commands

manpages/Tcl_IsStandardChannel.3.html
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

manpages/XCompositeQueryExtension.3.html
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

manpages/TAP::Base.3pm.html
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

manpages/MIME::WordDecoder.3pm.html
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

manpages/Net::Server::Single.3pm.html
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

manpages/XkbAllocGeomSectionDoodads.3.html
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

manpages/update-ca-certificates.html
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

manpages/grub2-ofpathname.8.html
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

manpages/xmlstarlet.1.html
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

manpages/wftopfa.1.html
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

manpages/Tk_IsTopLevel.3.html
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

manpages/XLookupString.3.html
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





We can't live, work or learn in freedom unless the software we use is free.