- set the current texture coordinates
C SPECIFICATION
PARAMETERS
_param1, _param2, _param3, _param4
Specify s, t, r, and q
texture coordinates. Not
all parameters are pre-
sent in all forms of the
command.
C SPECIFICATION
PARAMETERS
_param1
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.
DESCRIPTION
glTexCoord specifies texture coordinates in one, two,
three, or four dimensions. glTexCoord1 sets the current
texture coordinates to (_param1(1), 0, 0, 1); a call to
glTexCoord2 sets them to (_param1(1), _param2(1), 0, 1).
Similarly, glTexCoord3 specifies the texture coordinates
as (_param1(1), _param2(1), _param3(1), 1), and
glTexCoord4 defines all four components explicitly as
(_param1(1), _param2(1), _param3(1), _param4(1)).
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.
When the GL_ARB_imaging extension is supported, glTexCoord
always updates texture unit GL_TEXTURE0_ARB.
ASSOCIATED GETS
glGet with argument GL_CURRENT_TEXTURE_COORDS
SEE ALSO
glTexCoordPointer, glVertex
1