1GLTEXCOORD(3G)                   OpenGL Manual                  GLTEXCOORD(3G)
2
3
4

NAME

6       glTexCoord - set the current texture coordinates
7

C SPECIFICATION

9       void glTexCoord1s(GLshort s);
10
11       void glTexCoord1i(GLint s);
12
13       void glTexCoord1f(GLfloat s);
14
15       void glTexCoord1d(GLdouble s);
16
17       void glTexCoord2s(GLshort s, GLshort t);
18
19       void glTexCoord2i(GLint s, GLint t);
20
21       void glTexCoord2f(GLfloat s, GLfloat t);
22
23       void glTexCoord2d(GLdouble s, GLdouble t);
24
25       void glTexCoord3s(GLshort s, GLshort t, GLshort r);
26
27       void glTexCoord3i(GLint s, GLint t, GLint r);
28
29       void glTexCoord3f(GLfloat s, GLfloat t, GLfloat r);
30
31       void glTexCoord3d(GLdouble s, GLdouble t, GLdouble r);
32
33       void glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q);
34
35       void glTexCoord4i(GLint s, GLint t, GLint r, GLint q);
36
37       void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
38
39       void glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
40

PARAMETERS

42       s, t, r, q
43           Specify s, t, r, and q texture coordinates. Not all parameters are
44           present in all forms of the command.
45

C SPECIFICATION

47       void glTexCoord1sv(const GLshort * v);
48
49       void glTexCoord1iv(const GLint * v);
50
51       void glTexCoord1fv(const GLfloat * v);
52
53       void glTexCoord1dv(const GLdouble * v);
54
55       void glTexCoord2sv(const GLshort * v);
56
57       void glTexCoord2iv(const GLint * v);
58
59       void glTexCoord2fv(const GLfloat * v);
60
61       void glTexCoord2dv(const GLdouble * v);
62
63       void glTexCoord3sv(const GLshort * v);
64
65       void glTexCoord3iv(const GLint * v);
66
67       void glTexCoord3fv(const GLfloat * v);
68
69       void glTexCoord3dv(const GLdouble * v);
70
71       void glTexCoord4sv(const GLshort * v);
72
73       void glTexCoord4iv(const GLint * v);
74
75       void glTexCoord4fv(const GLfloat * v);
76
77       void glTexCoord4dv(const GLdouble * v);
78

PARAMETERS

80       v
81           Specifies a pointer to an array of one, two, three, or four
82           elements, which in turn specify the s, t, r, and q texture
83           coordinates.
84

DESCRIPTION

86       glTexCoord specifies texture coordinates in one, two, three, or four
87       dimensions.  glTexCoord1 sets the current texture coordinates to s 0 0
88       1; a call to glTexCoord2 sets them to s t 0 1. Similarly, glTexCoord3
89       specifies the texture coordinates as s t r 1, and glTexCoord4 defines
90       all four components explicitly as s t r q.
91
92       The current texture coordinates are part of the data that is associated
93       with each vertex and with the current raster position. Initially, the
94       values for s, t, r, and q are (0, 0, 0, 1).
95

NOTES

97       The current texture coordinates can be updated at any time. In
98       particular, glTexCoord can be called between a call to glBegin() and
99       the corresponding call to glEnd().
100
101       When the ARB_imaging extension is supported, glTexCoord always updates
102       texture unit GL_TEXTURE0.
103

ASSOCIATED GETS

105       glGet() with argument GL_CURRENT_TEXTURE_COORDS
106

SEE ALSO

108       glMultiTexCoord(), glTexCoordPointer, glVertex()
109
111       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
112       under the SGI Free Software B License. For details, see
113       http://oss.sgi.com/projects/FreeB/.
114

AUTHORS

116       opengl.org
117
118
119
120opengl.org                        07/13/2018                    GLTEXCOORD(3G)
Impressum