1GLTEXCOORD(3G) GLTEXCOORD(3G)
2
3
4
6 glTexCoord1d, glTexCoord1f, glTexCoord1i, glTexCoord1s, glTexCoord2d,
7 glTexCoord2f, glTexCoord2i, glTexCoord2s, glTexCoord3d, glTexCoord3f,
8 glTexCoord3i, glTexCoord3s, glTexCoord4d, glTexCoord4f, glTexCoord4i,
9 glTexCoord4s, glTexCoord1dv, glTexCoord1fv, glTexCoord1iv, glTexCo‐
10 ord1sv, glTexCoord2dv, glTexCoord2fv, glTexCoord2iv, glTexCoord2sv,
11 glTexCoord3dv, glTexCoord3fv, glTexCoord3iv, glTexCoord3sv, glTexCo‐
12 ord4dv, glTexCoord4fv, glTexCoord4iv, glTexCoord4sv - set the current
13 texture coordinates
14
15
17 void glTexCoord1d( GLdouble s )
18 void glTexCoord1f( GLfloat s )
19 void glTexCoord1i( GLint s )
20 void glTexCoord1s( GLshort s )
21 void glTexCoord2d( GLdouble s,
22 GLdouble t )
23 void glTexCoord2f( GLfloat s,
24 GLfloat t )
25 void glTexCoord2i( GLint s,
26 GLint t )
27 void glTexCoord2s( GLshort s,
28 GLshort t )
29 void glTexCoord3d( GLdouble s,
30 GLdouble t,
31 GLdouble r )
32 void glTexCoord3f( GLfloat s,
33 GLfloat t,
34 GLfloat r )
35 void glTexCoord3i( GLint s,
36 GLint t,
37 GLint r )
38 void glTexCoord3s( GLshort s,
39 GLshort t,
40 GLshort r )
41 void glTexCoord4d( GLdouble s,
42 GLdouble t,
43 GLdouble r,
44 GLdouble q )
45 void glTexCoord4f( GLfloat s,
46 GLfloat t,
47 GLfloat r,
48 GLfloat q )
49 void glTexCoord4i( GLint s,
50 GLint t,
51 GLint r,
52 GLint q )
53 void glTexCoord4s( GLshort s,
54 GLshort t,
55 GLshort r,
56 GLshort q )
57
58
60 s, t, r, q
61 Specify s, t, r, and q texture coordinates. Not all parame‐
62 ters are present in all forms of the command.
63
65 void glTexCoord1dv( const GLdouble *v )
66 void glTexCoord1fv( const GLfloat *v )
67 void glTexCoord1iv( const GLint *v )
68 void glTexCoord1sv( const GLshort *v )
69 void glTexCoord2dv( const GLdouble *v )
70 void glTexCoord2fv( const GLfloat *v )
71 void glTexCoord2iv( const GLint *v )
72 void glTexCoord2sv( const GLshort *v )
73 void glTexCoord3dv( const GLdouble *v )
74 void glTexCoord3fv( const GLfloat *v )
75 void glTexCoord3iv( const GLint *v )
76 void glTexCoord3sv( const GLshort *v )
77 void glTexCoord4dv( const GLdouble *v )
78 void glTexCoord4fv( const GLfloat *v )
79 void glTexCoord4iv( const GLint *v )
80 void glTexCoord4sv( const GLshort *v )
81
82
84 v Specifies a pointer to an array of one, two, three, or four ele‐
85 ments, which in turn specify the s, t, r, and q texture coordi‐
86 nates.
87
89 glTexCoord specifies texture coordinates in one, two, three, or four
90 dimensions. glTexCoord1 sets the current texture coordinates to (s, 0,
91 0, 1); a call to
92 glTexCoord2 sets them to (s, t, 0, 1). Similarly, glTexCoord3 speci‐
93 fies the texture coordinates as (s, t, r, 1), and glTexCoord4 defines
94 all four components explicitly as (s, t, r, q).
95
96 The current texture coordinates are part of the data that is associated
97 with each vertex and with the current raster position. Initially, the
98 values for s, t, r, and q are (0, 0, 0, 1).
99
101 The current texture coordinates can be updated at any time. In partic‐
102 ular, glTexCoord can be called between a call to glBegin and the corre‐
103 sponding call to glEnd.
104
105 When the GL_ARB_imaging extension is supported, glTexCoord always
106 updates texture unit GL_TEXTURE0_ARB.
107
109 glGet with argument GL_CURRENT_TEXTURE_COORDS
110
112 glTexCoordPointer(3G), glVertex(3G)
113
114
115
116 GLTEXCOORD(3G)