GLFOGCOORDPOINTER(3gl)GLFOGCOORDPOINTER(3gl)NAMEglFogCoordPointer - define an array of fog coordinates
C SPECIFICATION
void glFogCoordPointer( GLenum type,
GLsizei stride,
const GLvoid *pointer )
PARAMETERS
type Specifies the data type of each fog coordinate component in
the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE,
GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT,
GL_FLOAT, and GL_DOUBLE are accepted.
stride Specifies the byte offset between consecutive fog coordinates.
If stride is 0, (the initial value), the fog coordinates are
understood to be tightly packed in the array.
pointer Specifies a pointer to the first component of the first fog
coordinate element in the array.
DESCRIPTIONglFogCoordPointer specifies the location and data format of an array of
fog coordinates to use when rendering. type specifies the data type of
each fog coordinate component, and stride specifies the byte stride
from one fog coordinate to the next allowing vertexes 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 glIn‐
terleavedArrays.)
When a fog coordinate array is specified, type, stride, and pointer are
saved as client-side state.
To enable and disable the fog coordinate array, call glEnable‐
ClientState and glDisableClientState with the argument
GL_FOG_COORD_ARRAY. If enabled, the fog coordinate array is used when
glDrawArrays, glDrawElements, or glArrayElement is called.
NOTESglFogCoordPointer is available only if the GL version is 1.4 or
greater.
The fog coordinate array is initially disabled and isn't accessed when
glArrayElement, glDrawArrays, or glDrawElements is called.
Execution of glFogCoordPointer is not allowed between the execution of
glBegin and the corresponding execution of glEnd, but an error may or
may not be generated. If no error is generated, the operation is unde‐
fined.
glFogCoordPointer is typically implemented on the client side.
Fog coordinate array parameters are client-side state and are therefore
not saved or restored by glPushAttrib and glPopAttrib. Use glPush‐
ClientAttrib 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_FOG_COORD_ARRAY
glGet with argument GL_FOG_COORD_ARRAY_TYPE
glGet with argument GL_FOG_COORD_ARRAY_STRIDE
glGetPointerv with argument GL_FOG_COORD_ARRAY_POINTER
SEE ALSO
glArrayElement, glDrawArrays, glDrawElements, glEdgeFlagPointer, glEn‐
able, glFogCoordPointer, glGetPointerv, glIndexPointer, glInter‐
leavedArrays, glNormalPointer, glPopClientAttrib, glPushClientAttrib,
glSecondaryColorPointer, glTexCoordPointer, glVertexPointer
26 Feb 04 GLFOGCOORDPOINTER(3gl)