*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> OpenGL/glcolormask (3)              
Title
Content
Arch
Section
 

Contents


glColorMask(3G)		       OpenGL Reference		       glColorMask(3G)


NAME    [Toc]    [Back]

     glColorMask - enable and disable writing of frame buffer color components

C SPECIFICATION    [Toc]    [Back]

     void glColorMask( GLboolean red,
		       GLboolean green,
		       GLboolean blue,
		       GLboolean alpha )

PARAMETERS    [Toc]    [Back]

     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.

DESCRIPTION    [Toc]    [Back]

     glColorMask specifies whether the individual color	components in the
     frame buffer can or cannot	be written.  If	red is GL_FALSE, 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    [Toc]    [Back]

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

ASSOCIATED GETS    [Toc]    [Back]

     glGet with	argument GL_COLOR_WRITEMASK
     glGet with	argument GL_RGBA_MODE

SEE ALSO    [Toc]    [Back]

      
      
     glClear, glColor, glColorPointer, glDepthMask, glIndex, glIndexPointer,
     glIndexMask, glStencilMask


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
gltexturecolormasksgis IRIX enable and disable the storing of texture element color components
gldepthmask IRIX enable or disable writing into the depth buffer
glDepthMask Tru64 enable or disable writing into the depth buffer
backbuffer IRIX enable and disable drawing to the back or front buffer
frontbuffer IRIX enable and disable drawing to the back or front buffer
zbuffer IRIX enable or disable z-buffer operation in the current framebuffer
cgtwo OpenBSD 8-bit color frame buffer
cgeight OpenBSD 24-bit color frame buffer
cgthree OpenBSD 8-bit color frame buffer
cgthree OpenBSD 8-bit color frame buffer
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service