GLCOLORMASK(3G) UNIX Programmer's Manual GLCOLORMASK(3G)
glColorMask - enable and disable writing of frame buffer
color components
void glColorMask( GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha )
red, green, blue, alpha
Specify whether red, green, blue, and
alpha can or cannot be written into
the frame buffer. The initial values
are all GL_TRUE, indicating that the
color components can be written.
glColorMask specifies whether the individual color com-
ponents in the frame buffer can or cannot be written. If red
is GL_FALSE, for example, no change is made to the red com-
ponent of any pixel in any of the color buffers, regardless
of the drawing operation attempted.
Changes to individual bits of components cannot be con-
trolled. Rather, changes are either enabled or disabled for
entire color components.
GL_INVALID_OPERATION is generated if glColorMask is executed
between the execution of glBegin and the corresponding exe-
cution of glEnd.
glGet with argument GL_COLOR_WRITEMASK
glGet with argument GL_RGBA_MODE
glClear(3G), glColor(3G), glColorPointer(3G),
glDepthMask(3G), glIndex(3G), glIndexPointer(3G),
glIndexMask(3G), glStencilMask(3G)
MirOS BSD #10-current Printed 20.2.2012 1
Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.