Gl.TexCoord2f (gb.opengl)
Static Sub TexCoord2f ( S As Float, T As Float )
Set the current texture coordinates.
Parameters
- s, t, r, q
-
Specify s, t, r, and q texture coordinates.
Not all parameters are present in all forms of the command.
Parameters
- v
-
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
Gl.TexCoord specifies texture coordinates in
one,
two,
three, or
four dimensions.
Gl.TexCoord1 sets the current texture coordinates to
;
a call to
Gl.TexCoord2 sets them to
.
Similarly,
Gl.TexCoord3 specifies the texture coordinates as
,
and
Gl.TexCoord4 defines all four components explicitly as
.
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,
Gl.TexCoord can be called between a call to Gl.Begin and the corresponding
call to Gl.End.
When the ARB_imaging extension is supported,
Gl.TexCoord always
updates texture unit Gl.TEXTURE0.
Associated Gets
Gl.Get with argument
Gl.CURRENT_TEXTURE_COORDS
See also
Gl.MultiTexCoord,
Gl.TexCoordPointer,
Gl.Vertex
See original documentation on OpenGL website