GLINDEX


HOME

GLINDEX

NAME
C SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ASSOCIATED GETS
SEE ALSO

NAME

glIndexd, glIndexf, glIndexi, glIndexs, glIndexub, glIndexdv, glIndexfv, glIndexiv, glIndexsv, glIndexubv − set the current color index

C SPECIFICATION

void glIndexd( GLdouble c )
void glIndexf( GLfloat c )
void glIndexi( GLint c )
void glIndexs( GLshort c )
void glIndexub( GLubyte c); 1.1 )

PARAMETERS

1.1

Specifies the new value for the current color index.

C SPECIFICATION

void glIndexdv( const GLdouble *c )
void glIndexfv( const GLfloat *c )
void glIndexiv( const GLint *c )
void glIndexsv( const GLshort *c )
void glIndexubv( const GLubyte *c); 1.1 )

PARAMETERS

1.1

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

DESCRIPTION

glIndex updates the current (single-valued) color index. It takes one argument, the new value for the current color index.

The current index is stored as a floating-point value. Integer values are converted directly to floating-point values, with no special mapping. The initial value is 1.

Index values outside the representable range of the color index buffer are not clamped. However, before an index is dithered (if enabled) and written to the frame buffer, it is converted to fixed-point . Any bits in the integer portion of the resulting fixed-point value that do not correspond to bits in the frame buffer are masked out.

NOTES

glIndexub and glIndexubv are available only if the GL version is 1.1 or greater.

The current index can be updated at any time. In particular, glIndex can be called between a call to glBegin and the corresponding call to glEnd.

ASSOCIATED GETS

glGet with argument GL_CURRENT_INDEX

SEE ALSO

glColor(3G), glIndexPointer(3G)



More Linux Commands

manpages/event.n.html
event(n) - Miscellaneous event facilities: define virtual ev
The event command provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. The command has se

manpages/gnutls_dtls_cookie_verify.3.html
gnutls_dtls_cookie_verify(3) - API function - Linux man page
This function will verify an incoming message for a valid cookie. If a valid cookie is returned then it should be associated with the session using gnutls_dtls_

manpages/TAP::Parser::SourceHandler::RawTAP.3pm.html
TAP::Parser::SourceHandler::RawTAP(3pm) - Stream output from
This is a raw TAP output TAP::Parser::SourceHandler - it has 2 jobs: 1. Figure out if the TAP::Parser::Source its given is raw TAP output (can_handle). 2. Creat

manpages/tfmtodit.1.html
tfmtodit(1) - create font files for use with groff -Tdvi....
tfmtodit creates a font file for use with groff -Tdvi. tfm_file is the name of the TeX font metric file for the font. map_file is a file giving the groff names

manpages/XCirculateSubwindowsUp.3.html
XCirculateSubwindowsUp(3) - change window stacking order....
The XRaiseWindow function raises the specified window to the top of the stack so that no sibling window obscures it. If the windows are regarded as overlapping

manpages/fcvt.3.html
fcvt(3) - convert a floating-point number to a string.......
The ecvt() function converts number to a null-terminated string of ndigits digits (where ndigits is reduced to a system-specific limit determined by the precisi

manpages/bzmore.1.html
bzmore(1) - file perusal filter for crt viewing of bzip2 com
Bzmore is a filter which allows examination of compressed or plain text files one screenful at a time on a soft-copy terminal. bzmore works on files compressed

manpages/acl_valid.3.html
acl_valid(3) - validate an ACL (Library - Linux man page)...
The acl_valid() function checks the ACL referred to by the argument acl for validity. The three required entries ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER must

manpages/LIST_HEAD.3.html
LIST_HEAD(3) implementations of lists, tail queues, and circ
These macros define and operate on three types of data structures: lists, tail queues, and circular queues. All three structures support the following functiona

manpages/Tcl_GetStringFromObj.3.html
Tcl_GetStringFromObj(3) - manipulate Tcl objects as strings
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store

manpages/dirfd.3.html
dirfd(3) - get directory stream file descriptor (Man Page)
The function dirfd() returns the file descriptor associated with the directory stream dirp. This descriptor is the one used internally by the directory stream.

manpages/mvwscanw.3ncurses.html
mvwscanw(3ncurses) - convert formatted input from a curses w
The scanw, wscanw and mvscanw routines are analogous to scanf [see scanf(3)]. The effect of these routines is as though wgetstr were called on the window, and t





We can't live, work or learn in freedom unless the software we use is free.