GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLTEXCOORDPOINTER

GLTEXCOORDPOINTER

Index
 

NAME

glTexCoordPointer - define an array of texture coordinates

 

C SPECIFICATION

void f3glTexCoordPointerfP( GLint fIsizefP,
f2sizefP
Specifies the number of coordinates per array element. Must be 1, 2, 3
or 4. The initial value is 4.
f2typefP
Specifies the data type of each texture coordinate. Symbolic constants %f3GL_SHORTfP, %f3GL_INTfP, %f3GL_FLOATfP, or %f3GL_DOUBLEfP are accepted. The initial value is %f3GL_FLOATfP.
f2stridefP
Specifies the byte offset between consecutive array elements. If f2stridefP is 0, the array elements are understood to be tightly packed. The initial value is 0.
f2ptrfP
Specifies a pointer to the first coordinate of the first element in the array. The initial value is 0.
 

DESCRIPTION

%f3glTexCoordPointerfP specifies the location and data of an array of texture coordinates to use when rendering. f2sizefP specifies the number of coordinates per element, and must be 1, 2, 3, or 4. f2typefP specifies the data type of each texture coordinate and f2stridefP specifies the byte stride from one array element 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
%f3glInterleavedArraysfP.) When a texture coordinate array is specified, f2sizefP, f2typefP, f2stridefP, and f2ptrfP are saved client-side state. To enable and disable the texture coordinate array, call %f3glEnableClientStatefP and %f3glDisableClientStatefP with the argument %f3GL_TEXTURE_COORD_ARRAYfP. If enabled, the texture coordinate array is used when %f3glDrawArraysfP, %f3glDrawElementsfP, %f3glDrawRangeElementsfP or %f3glArrayElementfP is called. Use %f3glDrawArraysfP to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use %f3glArrayElementfP to specify primitives by indexing vertices and vertex attributes and %f3glDrawElementsfP to construct a sequence of primitives by indexing vertices and vertex attributes.  

NOTES

%f3glTexCoordPointerfP is available only if the GL version is 1.1 or greater. The texture coordinate array is initially disabled and it won't be accessed when %f3glArrayElementfP, %f3glDrawElementsfP, %f3glDrawRangeElementsfP, or %f3glDrawArraysfP is called. Execution of %f3glTexCoordPointerfP is not allowed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP, but an error may or may not be generated. If no error is generated, the operation is undefined. %f3glTexCoordPointerfP is typically implemented on the client side with no protocol. The texture coordinate array parameters are client-side state and are therefore not saved or restored by %f3glPushAttribfP and %f3glPopAttribfP. Use %f3glPushClientAttribfP and %f3glPopClientAttribfP instead. When the %f3GL_ARB_imagingfP extension is supported, %f3glTexCoordPointerfP updates the texture coordinate array state of the active client texture unit, specified with %f3glClientActiveTextureARBfP.  

ERRORS

%f3GL_INVALID_VALUEfP is generated if f2sizefP is not 1, 2, 3, or 4. %f3GL_INVALID_ENUMfP is generated if f2typefP is not an accepted value. %f3GL_INVALID_VALUEfP is generated if f2stridefP is negative.  

ASSOCIATED GETS

%f3glIsEnabledfP with argument %f3GL_TEXTURE_COORD_ARRAYfP
%f3glGetfP with argument %f3GL_TEXTURE_COORD_ARRAY_SIZEfP
%f3glGetfP with argument %f3GL_TEXTURE_COORD_ARRAY_TYPEfP
%f3glGetPointervfP with argument %f3GL_TEXTURE_COORD_ARRAY_POINTERfP  

SEE ALSO

%f3glArrayElement(3G)fP, %f3glClientActiveTextureARB(3G)fP, %f3glColorPointer(3G)fP, %f3glDrawArrays(3G)fP, %f3glDrawElements(3G)fP, %f3glDrawRangeElements(3G)fP, %f3glEdgeFlagPointer(3G)fP, %f3glEnable(3G)fP, %f3glGetPointerv(3G)fP, %f3glIndexPointer(3G)fP, %f3glNormalPointer(3G)fP, %f3glPopClientAttrib(3G)fP, %f3glPushClientAttrib(3G)fP, %f3glTexCoord(3G)fP, %f3glVertexPointer(3G)fP


 

Index

NAME
C SPECIFICATION
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO