1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
|
'\" te
'\"! tbl|eqn | mmdoc
'\"macro stdmacro
.ds Vn Version 1.2
.ds Dt 24 September 1999
.ds Re Release 1.2.1
.ds Dp Jan 14 18:30
.ds Dm 01 texcoord.
.ds Xs 3537 4 texcoord.gl
.TH GLTEXCOORD 3G
.SH NAME
.B "glTexCoord1d, glTexCoord1f, glTexCoord1i, glTexCoord1s, glTexCoord2d, glTexCoord2f, glTexCoord2i, glTexCoord2s, glTexCoord3d, glTexCoord3f, glTexCoord3i, glTexCoord3s, glTexCoord4d, glTexCoord4f, glTexCoord4i, glTexCoord4s, glTexCoord1dv, glTexCoord1fv, glTexCoord1iv, glTexCoord1sv, glTexCoord2dv, glTexCoord2fv, glTexCoord2iv, glTexCoord2sv, glTexCoord3dv, glTexCoord3fv, glTexCoord3iv, glTexCoord3sv, glTexCoord4dv, glTexCoord4fv, glTexCoord4iv, glTexCoord4sv
\- set the current texture coordinates
.SH C SPECIFICATION
void \f3glTexCoord1d\fP(
GLdouble \fIs\fP )
.nf
.fi
void \f3glTexCoord1f\fP(
GLfloat \fIs\fP )
.nf
.fi
void \f3glTexCoord1i\fP(
GLint \fIs\fP )
.nf
.fi
void \f3glTexCoord1s\fP(
GLshort \fIs\fP )
.nf
.fi
void \f3glTexCoord2d\fP(
GLdouble \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord2d( 'u
GLdouble \fIt\fP )
.fi
void \f3glTexCoord2f\fP(
GLfloat \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord2f( 'u
GLfloat \fIt\fP )
.fi
void \f3glTexCoord2i\fP(
GLint \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord2i( 'u
GLint \fIt\fP )
.fi
void \f3glTexCoord2s\fP(
GLshort \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord2s( 'u
GLshort \fIt\fP )
.fi
void \f3glTexCoord3d\fP(
GLdouble \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord3d( 'u
GLdouble \fIt\fP,
GLdouble \fIr\fP )
.fi
void \f3glTexCoord3f\fP(
GLfloat \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord3f( 'u
GLfloat \fIt\fP,
GLfloat \fIr\fP )
.fi
void \f3glTexCoord3i\fP(
GLint \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord3i( 'u
GLint \fIt\fP,
GLint \fIr\fP )
.fi
void \f3glTexCoord3s\fP(
GLshort \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord3s( 'u
GLshort \fIt\fP,
GLshort \fIr\fP )
.fi
void \f3glTexCoord4d\fP(
GLdouble \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord4d( 'u
GLdouble \fIt\fP,
GLdouble \fIr\fP,
GLdouble \fIq\fP )
.fi
void \f3glTexCoord4f\fP(
GLfloat \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord4f( 'u
GLfloat \fIt\fP,
GLfloat \fIr\fP,
GLfloat \fIq\fP )
.fi
void \f3glTexCoord4i\fP(
GLint \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord4i( 'u
GLint \fIt\fP,
GLint \fIr\fP,
GLint \fIq\fP )
.fi
void \f3glTexCoord4s\fP(
GLshort \fIs\fP,
.nf
.ta \w'\f3void \fPglTexCoord4s( 'u
GLshort \fIt\fP,
GLshort \fIr\fP,
GLshort \fIq\fP )
.fi
.SH PARAMETERS
.TP \w'\f2s\fP\ \f2t\fP\ \f2r\fP\ \f2q\fP\ \ 'u
\f2s\fP, \f2t\fP, \f2r\fP, \f2q\fP
Specify \f2s\fP, \f2t\fP, \f2r\fP, and \f2q\fP texture coordinates.
Not all parameters are present in all forms of the command.
.SH C SPECIFICATION
void \f3glTexCoord1dv\fP(
const GLdouble \fI*v\fP )
.nf
.fi
void \f3glTexCoord1fv\fP(
const GLfloat \fI*v\fP )
.nf
.fi
void \f3glTexCoord1iv\fP(
const GLint \fI*v\fP )
.nf
.fi
void \f3glTexCoord1sv\fP(
const GLshort \fI*v\fP )
.nf
.fi
void \f3glTexCoord2dv\fP(
const GLdouble \fI*v\fP )
.nf
.fi
void \f3glTexCoord2fv\fP(
const GLfloat \fI*v\fP )
.nf
.fi
void \f3glTexCoord2iv\fP(
const GLint \fI*v\fP )
.nf
.fi
void \f3glTexCoord2sv\fP(
const GLshort \fI*v\fP )
.nf
.fi
void \f3glTexCoord3dv\fP(
const GLdouble \fI*v\fP )
.nf
.fi
void \f3glTexCoord3fv\fP(
const GLfloat \fI*v\fP )
.nf
.fi
void \f3glTexCoord3iv\fP(
const GLint \fI*v\fP )
.nf
.fi
void \f3glTexCoord3sv\fP(
const GLshort \fI*v\fP )
.nf
.fi
void \f3glTexCoord4dv\fP(
const GLdouble \fI*v\fP )
.nf
.fi
void \f3glTexCoord4fv\fP(
const GLfloat \fI*v\fP )
.nf
.fi
void \f3glTexCoord4iv\fP(
const GLint \fI*v\fP )
.nf
.fi
void \f3glTexCoord4sv\fP(
const GLshort \fI*v\fP )
.nf
.fi
.SH PARAMETERS
.TP
\f2v\fP
Specifies a pointer to an array of one, two, three, or four elements,
which in turn specify the
\f2s\fP,
\f2t\fP,
\f2r\fP, and
\f2q\fP texture coordinates.
.SH DESCRIPTION
\%\f3glTexCoord\fP specifies texture coordinates in
one,
two,
three, or
four dimensions.
\%\f3glTexCoord1\fP sets the current texture coordinates to
(\f2s\fP, 0, 0, 1);
a call to
.br
\%\f3glTexCoord2\fP sets them to
(\f2s\fP, \f2t\fP, 0, 1).
.BP
Similarly, \%\f3glTexCoord3\fP specifies the texture coordinates as
(\f2s\fP, \f2t\fP, \f2r\fP, 1), and
\%\f3glTexCoord4\fP defines all four components explicitly as
(\f2s\fP, \f2t\fP, \f2r\fP, \f2q\fP).
.P
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
\f2s\fP,
\f2t\fP,
\f2r\fP, and
\f2q\fP
are (0, 0, 0, 1).
.P
.SH NOTES
The current texture coordinates can be updated at any time.
In particular,
\%\f3glTexCoord\fP can be called between a call to \%\f3glBegin\fP and the corresponding
call to \%\f3glEnd\fP.
.P
When the \%\f3GL_ARB_imaging\fP extension is supported, \%\f3glTexCoord\fP always
updates texture unit \%\f3GL_TEXTURE0_ARB\fP.
.SH ASSOCIATED GETS
\%\f3glGet\fP with argument \%\f3GL_CURRENT_TEXTURE_COORDS\fP
.SH SEE ALSO
\%\f3glTexCoordPointer(3G)\fP,
\%\f3glVertex(3G)\fP
|