1GLCOLORMASK(3G)                                                GLCOLORMASK(3G)
2
3
4

NAME

6       glColorMask  -  enable and disable writing of frame buffer color compo‐
7       nents
8
9

C SPECIFICATION

11       void glColorMask( GLboolean red,
12                         GLboolean green,
13                         GLboolean blue,
14                         GLboolean alpha )
15
16

PARAMETERS

18       red, green, blue, alpha
19                             Specify whether red, green, blue, and  alpha  can
20                             or  cannot be written into the frame buffer.  The
21                             initial values are all GL_TRUE,  indicating  that
22                             the color components can be written.
23

DESCRIPTION

25       glColorMask  specifies  whether  the individual color components in the
26       frame buffer can or cannot be written.  If red is GL_FALSE,  for  exam‐
27       ple,  no change is made to the red component of any pixel in any of the
28       color buffers, regardless of the drawing operation attempted.
29
30       Changes to individual bits of components cannot be controlled.  Rather,
31       changes are either enabled or disabled for entire color components.
32

ERRORS

34       GL_INVALID_OPERATION  is  generated  if glColorMask is executed between
35       the execution of glBegin and the corresponding execution of glEnd.
36

ASSOCIATED GETS

38       glGet with argument GL_COLOR_WRITEMASK
39       glGet with argument GL_RGBA_MODE
40

SEE ALSO

42       glClear(3G),    glColor(3G),    glColorPointer(3G),    glDepthMask(3G),
43       glIndex(3G), glIndexPointer(3G), glIndexMask(3G), glStencilMask(3G)
44
45
46
47                                                               GLCOLORMASK(3G)
Impressum