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

NAME

6       glIndex - set the current color index
7

C SPECIFICATION

9       void glIndexs(GLshort c);
10
11       void glIndexi(GLint c);
12
13       void glIndexf(GLfloat c);
14
15       void glIndexd(GLdouble c);
16
17       void glIndexub(GLubyte c);
18

PARAMETERS

20       c
21           Specifies the new value for the current color index.
22
23

C SPECIFICATION

25       void glIndexsv(const GLshort * c);
26
27       void glIndexiv(const GLint * c);
28
29       void glIndexfv(const GLfloat * c);
30
31       void glIndexdv(const GLdouble * c);
32
33       void glIndexubv(const GLubyte * c);
34

PARAMETERS

36       c
37           Specifies a pointer to a one-element array that contains the new
38           value for the current color index.
39

DESCRIPTION

41       glIndex updates the current (single-valued) color index. It takes one
42       argument, the new value for the current color index.
43
44       The current index is stored as a floating-point value. Integer values
45       are converted directly to floating-point values, with no special
46       mapping. The initial value is 1.
47
48       Index values outside the representable range of the color index buffer
49       are not clamped. However, before an index is dithered (if enabled) and
50       written to the frame buffer, it is converted to fixed-point format. Any
51       bits in the integer portion of the resulting fixed-point value that do
52       not correspond to bits in the frame buffer are masked out.
53

NOTES

55       glIndexub and glIndexubv are available only if the GL version is 1.1 or
56       greater.
57
58       The current index can be updated at any time. In particular, glIndex
59       can be called between a call to glBegin() and the corresponding call to
60       glEnd().
61

ASSOCIATED GETS

63       glGet() with argument GL_CURRENT_INDEX
64

SEE ALSO

66       glColor(), glIndexPointer()
67
69       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
70       under the SGI Free Software B License. For details, see
71       http://oss.sgi.com/projects/FreeB/.
72

AUTHORS

74       opengl.org
75
76
77
78opengl.org                        07/13/2018                       GLINDEX(3G)
Impressum