1GLINDEXMASK(3G) GLINDEXMASK(3G)
2
3
4
6 glIndexMask - control the writing of individual bits in the color index
7 buffers
8
9
11 void glIndexMask( GLuint mask )
12
13
15 mask Specifies a bit mask to enable and disable the writing of indi‐
16 vidual bits in the color index buffers. Initially, the mask is
17 all 1's.
18
20 glIndexMask controls the writing of individual bits in the color index
21 buffers. The least significant n bits of mask, where n is the number
22 of bits in a color index buffer, specify a mask. Where a 1 (one)
23 appears in the mask, it's possible to write to the corresponding bit in
24 the color index buffer (or buffers). Where a 0 (zero) appears, the
25 corresponding bit is write-protected.
26
27 This mask is used only in color index mode, and it affects only the
28 buffers currently selected for writing (see glDrawBuffer). Initially,
29 all bits are enabled for writing.
30
32 GL_INVALID_OPERATION is generated if glIndexMask is executed between
33 the execution of glBegin and the corresponding execution of glEnd.
34
36 glGet with argument GL_INDEX_WRITEMASK
37
39 glColorMask(3G), glDepthMask(3G), glDrawBuffer(3G), glIndex(3G),
40 glIndexPointer(3G), glStencilMask(3G)
41
42
43
44 GLINDEXMASK(3G)