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

  man pages->Tru64 Unix man pages -> glIndexMask (3)              
Title
Content
Arch
Section
 

glIndexMask(3G)

Contents


NAME    [Toc]    [Back]

       glIndexMask  -  control  the writing of individual bits in
       the color index buffers

SYNOPSIS    [Toc]    [Back]

       void glIndexMask(
               GLuint mask );

PARAMETERS    [Toc]    [Back]

       Specifies a bit mask to enable and disable the writing  of
       individual bits in the color index buffers. Initially, the
       mask is all 1's.

DESCRIPTION    [Toc]    [Back]

       glIndexMask() controls the writing of individual  bits  in
       the  color  index buffers. The least significant n bits of
       mask, where n is the number  of  bits  in  a  color  index
       buffer,  specify  a  mask.  Where a 1 (one) appears in the
       mask, it's possible to write to the corresponding  bit  in
       the  color  index  buffer  (or  buffers). Where a 0 (zero)
       appears, the corresponding bit is write-protected.

       This mask is used only in color index mode, and it affects
       only  the  buffers  currently  selected  for  writing (see
       glDrawBuffer()).  Initially,  all  bits  are  enabled  for
       writing.

ERRORS    [Toc]    [Back]

       GL_INVALID_OPERATION is generated if glIndexMask() is executed
 between the execution of glBegin()  and  the  corresponding
 execution of glEnd().

ASSOCIATED GETS    [Toc]    [Back]

       glGet() with argument GL_INDEX_WRITEMASK

SEE ALSO    [Toc]    [Back]

      
      
       glColorMask(3),   glDepthMask(3),  glDrawBuffer(3),  glIndex(3), glIndexPointer(3), glStencilMask(3)



                                                  glIndexMask(3G)
[ Back ]
 Similar pages
Name OS Title
glstencilmask IRIX control the writing of individual bits in the stencil planes
glStencilMask Tru64 control the writing of individual bits in the stencil planes
glclearindex IRIX specify the clear value for the color index buffers
glClearIndex Tru64 specify the clear value for the color index buffers
getbuffer IRIX indicates which buffers are enabled for writing
clQueryFree IRIX Reading and writing data with implicit buffers
gldrawbuffer IRIX specify which color buffers are to be drawn into
glDrawBuffer Tru64 specify which color buffers are to be drawn into
glIndexi Tru64 set the current color index
glIndexfv Tru64 set the current color index
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service