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

NAME

6       glIndexd,  glIndexf,  glIndexi,  glIndexs,  glIndexub, glIndexdv, glIn‐
7       dexfv, glIndexiv, glIndexsv, glIndexubv - set the current color index
8
9

C SPECIFICATION

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

PARAMETERS

19       1.1  Specifies the new value for the current color index.
20

C SPECIFICATION

22       void glIndexdv( const GLdouble *c )
23       void glIndexfv( const GLfloat *c )
24       void glIndexiv( const GLint *c )
25       void glIndexsv( const GLshort *c )
26       void glIndexubv( const GLubyte *c);  1.1 )
27
28

PARAMETERS

30       1.1    Specifies a pointer to a one-element array that contains the new
31              value for the current color index.
32

DESCRIPTION

34       glIndex  updates the current (single-valued) color index.  It takes one
35       argument, the new value for the current color index.
36
37       The current index is stored as a floating-point value.  Integer  values
38       are  converted  directly to floating-point values, with no special map‐
39       ping.  The initial value is 1.
40
41       Index values outside the representable range of the color index  buffer
42       are not clamped.  However, before an index is dithered (if enabled) and
43       written to the frame buffer, it is converted to fixed-point .  Any bits
44       in  the  integer portion of the resulting fixed-point value that do not
45       correspond to bits in the frame buffer are masked out.
46

NOTES

48       glIndexub and glIndexubv are available only if the GL version is 1.1 or
49       greater.
50
51       The  current  index can be updated at any time.  In particular, glIndex
52       can be called between a call to glBegin and the corresponding  call  to
53       glEnd.
54

ASSOCIATED GETS

56       glGet with argument GL_CURRENT_INDEX
57

SEE ALSO

59       glColor(3G), glIndexPointer(3G)
60
61
62
63                                                                   GLINDEX(3G)
Impressum