GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLCOLORMASK

GLCOLORMASK

Index
 

NAME

glColorMask - enable and disable writing of frame buffer color components

 

C SPECIFICATION

void f3glColorMaskfP( GLboolean fIredfP,
f2redfP, f2greenfP, f2bluefP, f2alphafP
Specify whether red, green, blue, and alpha can or cannot be written
into the frame buffer.
The initial values are all %f3GL_TRUEfP,
indicating that the color components can be written.
 

DESCRIPTION

%f3glColorMaskfP specifies whether the individual color components in the frame buffer can or cannot be written. If f2redfP is %f3GL_FALSEfP, for example, no change is made to the red component of any pixel in any of the color buffers, regardless of the drawing operation attempted. Changes to individual bits of components cannot be controlled. Rather, changes are either enabled or disabled for entire color components.  

ERRORS

%f3GL_INVALID_OPERATIONfP is generated if %f3glColorMaskfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.  

ASSOCIATED GETS

%f3glGetfP with argument %f3GL_COLOR_WRITEMASKfP
%f3glGetfP with argument %f3GL_RGBA_MODEfP  

SEE ALSO

%f3glClear(3G)fP, %f3glColor(3G)fP, %f3glColorPointer(3G)fP, %f3glDepthMask(3G)fP, %f3glIndex(3G)fP, %f3glIndexPointer(3G)fP, %f3glIndexMask(3G)fP, %f3glStencilMask(3G)fP


 

Index

NAME
C SPECIFICATION
DESCRIPTION
ERRORS
ASSOCIATED GETS
SEE ALSO