The glTexCoordPointer subroutine specifies the location and data format of an array of texture coordinates to use when rendering. The type parameter specifies the data type of each texture coordinate and stride gives 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. When a texture coordinate array is specified, size , type , stride , and pointer are saved client side state. If enabled, the texture coordinate array is used when glDrawArrays , glDrawElements or glArrayElement is called. 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.
Parameters size Specifies the number of coordinates per array element.
If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. The glTexCoordPointer subroutine 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 glArrayElement , glDrawElements or glDrawArrays is called. Execution of glTexCoordPointer is not allowed between glBegin and the corresponding glEnd , but an error may or may not be generated.