1GLCOLORMASK(3G) OpenGL Manual GLCOLORMASK(3G)
2
3
4
6 glColorMask - enable and disable writing of frame buffer color
7 components
8
10 void glColorMask(GLboolean red, GLboolean green, GLboolean blue,
11 GLboolean alpha);
12
14 red, green, blue, alpha
15 Specify whether red, green, blue, and alpha can or cannot be
16 written into the frame buffer. The initial values are all GL_TRUE,
17 indicating that the color components can be written.
18
20 glColorMask specifies whether the individual color components in the
21 frame buffer can or cannot be written. If red is GL_FALSE, for example,
22 no change is made to the red component of any pixel in any of the color
23 buffers, regardless of the drawing operation attempted.
24
25 Changes to individual bits of components cannot be controlled. Rather,
26 changes are either enabled or disabled for entire color components.
27
29 GL_INVALID_OPERATION is generated if glColorMask is executed between
30 the execution of glBegin() and the corresponding execution of glEnd().
31
33 glGet() with argument GL_COLOR_WRITEMASK
34
35 glGet() with argument GL_RGBA_MODE
36
38 glClear(), glColor(), glColorPointer(), glDepthMask(), glIndex(),
39 glIndexPointer(), glIndexMask(), glStencilMask()
40
42 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
43 under the SGI Free Software B License. For details, see
44 http://oss.sgi.com/projects/FreeB/.
45
47 opengl.org
48
49
50
51opengl.org 07/13/2018 GLCOLORMASK(3G)