1GLINDEXMASK(3G)                  OpenGL Manual                 GLINDEXMASK(3G)
2
3
4

NAME

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

C SPECIFICATION

10       void glIndexMask(GLuint mask);
11

PARAMETERS

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

DESCRIPTION

19       glIndexMask controls the writing of individual bits in the color index
20       buffers. The least significant n bits of mask, where n is the number of
21       bits in a color index buffer, specify a mask. Where a 1 (one) appears
22       in the mask, it's possible to write to the corresponding bit in the
23       color index buffer (or buffers). Where a 0 (zero) appears, the
24       corresponding bit is write-protected.
25
26       This mask is used only in color index mode, and it affects only the
27       buffers currently selected for writing (see glDrawBuffer()). Initially,
28       all bits are enabled for writing.
29

ERRORS

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

ASSOCIATED GETS

35       glGet() with argument GL_INDEX_WRITEMASK
36

SEE ALSO

38       glColorMask(), glDepthMask(), glDrawBuffer(), glIndex(),
39       glIndexPointer(), 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

AUTHORS

47       opengl.org
48
49
50
51opengl.org                        06/10/2014                   GLINDEXMASK(3G)
Impressum