Gl.MultiTexCoord2f (gb.opengl)
Static Sub MultiTexCoord2f ( Target As Integer, S As Float, T As Float )
Set the current texture coordinates.
Parameters
- target
-
Specifies the texture unit whose coordinates should be modified. The number
of texture units is implementation dependent, but must be at least
two. Symbolic constant must be one of
Gl.TEXTURE,
where i ranges from 0 to Gl.MAX_TEXTURE_COORDS - 1,
which is an implementation-dependent value.
- s, t, r, q
-
Specify s, t, r, and q texture coordinates for
target texture unit. Not all parameters are present in all forms
of the command.
Parameters
- target
-
Specifies the texture unit whose coordinates should be modified. The number
of texture units is implementation dependent, but must be at least
two. Symbolic constant must be one of
Gl.TEXTURE,
where i ranges from 0 to Gl.MAX_TEXTURE_COORDS - 1,
which is an implementation-dependent value.
- v
-
Specifies a pointer to an array of one, two, three, or four elements,
which in turn specify the
,
,
,
and
texture coordinates.
Description
Gl.MultiTexCoord specifies texture coordinates in one, two, three, or four
dimensions.
Gl.MultiTexCoord1 sets the current texture
coordinates to
;
a call to
Gl.MultiTexCoord2
sets them to
.
Similarly,
Gl.MultiTexCoord3 specifies the texture coordinates as
,
and
Gl.MultiTexCoord4
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
are
.
Notes
Gl.MultiTexCoord is only supported if the GL version is 1.3 or greater, or if
ARB_multitexture is included in the string returned by
Gl.GetString when called with the argument
Gl.EXTENSIONS.
The current texture coordinates can be updated at any time.
In particular,
Gl.MultiTexCoord can be called between a call to Gl.Begin and the corresponding
call to Gl.End.
It is always the case that Gl.TEXTURE
= Gl.TEXTURE0 +
.
Associated Gets
Gl.Get with argument
Gl.CURRENT_TEXTURE_COORDS with appropriate
texture unit selected.
Gl.Get with argument Gl.MAX_TEXTURE_COORDS
See also
Gl.ClientActiveTexture,
Gl.TexCoord,
Gl.TexCoordPointer,
Gl.Vertex
See original documentation on OpenGL website