ord1sv, glTexCoord2dv, glTexCoord2fv, glTexCoord2iv, glTexCoord2sv, gl‐
TexCoord3dv, glTexCoord3fv, glTexCoord3iv, glTexCoord3sv, glTexCoord4dv,
glTexCoord4fv, glTexCoord4iv, glTexCoord4sv - set the current texture
coordinates
C SPECIFICATION
void GLAPIENTRY glTexCoord1d( GLdouble s )
void GLAPIENTRY glTexCoord1f( GLfloat s )
void GLAPIENTRY glTexCoord1i( GLint s )
void GLAPIENTRY glTexCoord1s( GLshort s )
void GLAPIENTRY glTexCoord2d( GLdouble s,
GLdouble t )
void GLAPIENTRY glTexCoord2f( GLfloat s,
GLfloat t )
void GLAPIENTRY glTexCoord2i( GLint s,
GLint t )
void GLAPIENTRY glTexCoord2s( GLshort s,
GLshort t )
void GLAPIENTRY glTexCoord3d( GLdouble s,
GLdouble t,
GLdouble r )
void GLAPIENTRY glTexCoord3f( GLfloat s,
GLfloat t,
GLfloat r )
void GLAPIENTRY glTexCoord3i( GLint s,
GLint t,
GLint r )
void GLAPIENTRY glTexCoord3s( GLshort s,
GLshort t,
GLshort r )
void GLAPIENTRY glTexCoord4d( GLdouble s,
GLdouble t,
GLdouble r,
GLdouble q )
void GLAPIENTRY glTexCoord4f( GLfloat s,
GLfloat t,
GLfloat r,
GLfloat q )
void GLAPIENTRY glTexCoord4i( GLint s,
GLint t,
GLint r,
GLint q )
void GLAPIENTRY glTexCoord4s( GLshort s,
GLshort t,
GLshort r,
GLshort q )
PARAMETERS
s, t, r, q
Specify s, t, r, and q texture coordinates. Not all parame‐
ters are present in all forms of the command.
void GLAPIENTRY glTexCoord4fv( const GLfloat *v )
void GLAPIENTRY glTexCoord4iv( const GLint *v )
void GLAPIENTRY glTexCoord4sv( const GLshort *v )
PARAMETERS
v Specifies a pointer to an array of one, two, three, or four ele‐
ments, which in turn specify the s, t, r, and q texture coordi‐
nates.
DESCRIPTION
glTexCoord specifies texture coordinates in one, two, three, or four di‐
mensions. 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 particu‐
lar, glTexCoord can be called between a call to glBegin and the corre‐
sponding call to glEnd.
When the GL_ARB_imaging extension is supported, glTexCoord always up‐
dates texture unit GL_TEXTURE0_ARB.
ASSOCIATED GETS
glGet with argument GL_CURRENT_TEXTURE_COORDS
SEE ALSO
glTexCoordPointer, glVertex
GLTEXCOORD(3G)
Man(1) output converted with
man2html