1GLCLEARINDEX(3G) OpenGL Manual GLCLEARINDEX(3G)
2
3
4
6 glClearIndex - specify the clear value for the color index buffers
7
9 void glClearIndex(GLfloat c);
10
12 c
13 Specifies the index used when the color index buffers are cleared.
14 The initial value is 0.
15
17 glClearIndex specifies the index used by glClear() to clear the color
18 index buffers. c is not clamped. Rather, c is converted to a
19 fixed-point value with unspecified precision to the right of the binary
20 point. The integer part of this value is then masked with 2 m - 1,
21 where m is the number of bits in a color index stored in the frame
22 buffer.
23
25 GL_INVALID_OPERATION is generated if glClearIndex is executed between
26 the execution of glBegin() and the corresponding execution of glEnd().
27
29 glGet() with argument GL_INDEX_CLEAR_VALUE
30
31 glGet() with argument GL_INDEX_BITS
32
34 glClear()
35
37 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
38 under the SGI Free Software B License. For details, see
39 http://oss.sgi.com/projects/FreeB/.
40
42 opengl.org
43
44
45
46opengl.org 07/13/2018 GLCLEARINDEX(3G)