T
glTexCoord
Parameters
s, t, r, q
v
Description
glTexCoord specifies texture coordinates in one, two, three, or four dimensions.
glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glTexCoord2 sets
them to (s, t, 0, 1). Similarly, glTexCoord3 specifies the texture coordinates as (s, t, r, 1),
and glTexCoord4 defines all four components explicitly as (s, t, r, q).
The current texture coordinates are part of the data that is associated with each vertex
and with the current raster position. Initially, the values for s, t, r, and q are (0, 0, 0, 1).
Notes
The current texture coordinates can be updated at any time. In particular, glTexCoord
can be called between a call to glBegin and the corresponding call to glEnd.
Associated Gets
glGet with argument GL_CURRENT_TEXTURE_COORDS
See Also
glTexCoordPointer,
glVertex
424
Specify s, t, r, and q texture coordinates. Not all parameters are
present in all forms of the command.
Specifies a pointer to an array of one, two, three, or four elements,
which in turn specify the s, t, r, and q texture coordinates.
Chapter 18