GLINDEXPOINTER
NAMEC SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO
NAME
glIndexPointer − define an array of color indexes
C SPECIFICATION
void glIndexPointer( GLenum type,
GLsizei stride, | |
const GLvoid *ptr ) |
PARAMETERS
type |
Specifies the data type of each color index in the array. Symbolic constants GL_UNSIGNED_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. | ||
stride |
Specifies the byte offset between consecutive color indexes. If stride is 0 (the initial value), the color indexes are understood to be tightly packed in the array. The initial value is 0. | ||
ptr |
Specifies a pointer to the first index in the array. The initial value is 0. |
DESCRIPTION
glIndexPointer specifies the location and data of an array of color indexes to use when rendering. type specifies the data type of each color index and stride gives the byte stride from one color index to the next allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see glInterleavedArrays.)
type, stride, and ptr are saved as client-side state.
The color index array is initially disabled. To enable and disable the array, call glEnableClientState and glDisableClientState with the argument GL_INDEX_ARRAY. If enabled, the color index array is used when glDrawArrays, glDrawElements or glArrayElement is called.
Use glDrawArrays to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use glArrayElement to specify primitives by indexing vertices and vertex attributes and glDrawElements to construct a sequence of primitives by indexing vertices and vertex attributes.
NOTES
glIndexPointer is available only if the GL version is 1.1 or greater.
The color index array is initially disabled, and it isn’t accessed when glArrayElement, glDrawElements, or glDrawArrays is called.
Execution of glIndexPointer is not allowed between glBegin and the corresponding glEnd, but an error may or may not be generated. If an error is not generated, the operation is undefined.
glIndexPointer is typically implemented on the client side.
Since the color index array parameters are client-side state, they are not saved or restored by glPushAttrib and glPopAttrib. Use glPushClientAttrib and glPopClientAttrib instead.
ERRORS
GL_INVALID_ENUM is generated if type is not an accepted value.
GL_INVALID_VALUE is generated if stride is negative.
ASSOCIATED GETS
glIsEnabled
with argument GL_INDEX_ARRAY
glGet with argument GL_INDEX_ARRAY_TYPE
glGet with argument GL_INDEX_ARRAY_STRIDE
glGetPointerv with argument
GL_INDEX_ARRAY_POINTER
SEE ALSO
glArrayElement(3G), glColorPointer(3G), glDrawArrays(3G), glDrawElements(3G), glEdgeFlagPointer(3G), glEnable(3G), glGetPointerv(3G), glInterleavedArrays(3G), glNormalPointer(3G), glPopClientAttrib(3G), glPushClientAttrib(3G), glTexCoordPointer(3G), glVertexPointer(3G)
More Linux Commands
manpages/set_escdelay.3ncurses.html
get_escdelay(3ncurses) - curses thread support (Man Page)...
This implementation can be configured to provide rudimentary support for multi-threaded applications. This makes a different set of libraries, e.g., libncursest
manpages/rstartd.1.html
rstartd(1) - a sample implementation of a Remote Start rsh h
Rstartd is an implementation of a Remote Start helper as defined in A Flexible Remote Execution Protocol Based on rsh. This document describes the peculiarities
manpages/fstab-decode.8.html
fstab-decode(8) - run a command with fstab-encoded arguments
fstab-decode decodes escapes in the specified ARGUMENTs and uses them to run COMMAND. The argument escaping uses the same rules as path escaping in /etc/fstab,
manpages/gdiffmk.1.html
gdiffmk(1) - mark differences between groff/nroff/troff file
gdiffmk compares two groff(1), nroff(1), or troff(1) documents, file1 and file2, and creates an output which is file2 with added margin character (.mc) commands
manpages/recvfrom.2.html
recvfrom(2) - receive a message from a socket (Man Page)....
The recv(), recvfrom(), and recvmsg() calls are used to receive messages from a socket. They may be used to receive data on both connectionless and connection-o
manpages/pcre32_jit_exec.3.html
pcre32_jit_exec(3) Perl-compatible regular expressions......
This function matches a compiled regular expression that has been successfully studied with one of the JIT options against a given subject string, using a match
manpages/glRasterPos4iv.3gl.html
glRasterPos4iv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma
manpages/mcheck_check_all.3.html
mcheck_check_all(3) heap consistency checking (Man Page)....
The mcheck() function installs a set of debugging hooks for the malloc(3) family of memory-allocation functions. These hooks cause certain consistency checks to
manpages/dosfslabel.8.html
dosfslabel(8) - set or get MS-DOS filesystem label (ManPage)
fatlabel set or gets a MS-DOS filesystem label from a given device. If the label is omitted, then the label name of the specified device is written on the stand
manpages/gnutls_privkey_get_type.3.html
gnutls_privkey_get_type(3) - API function - Linux man page
This function will return the type of the private key. This is actually the type of the subsystem used to set this private key. RETURNS a member of the gnutls_p
manpages/XMatchVisualInfo.3.html
XMatchVisualInfo(3) - obtain visual information and visual s
XMatchVisualInfo.3 - The XGetVisualInfo function returns a list of visual structures that have attributes equal to the attributes specified by vinfo_template. I
manpages/XcmsSetWhiteAdjustProc.3.html
XcmsSetWhiteAdjustProc(3) - modifying CCC attributes........
The XcmsSetWhitePoint function changes the Client White Point in the specified CCC. Note that the pixel member is ignored and that the color specification is le
