Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

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.TEXTUREi, 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.TEXTUREi, 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 s, t, r, and q texture coordinates.

Description

Gl.MultiTexCoord specifies texture coordinates in one, two, three, or four dimensions. Gl.MultiTexCoord1 sets the current texture coordinates to s 0 0 1 ; a call to Gl.MultiTexCoord2 sets them to s t 0 1 . Similarly, Gl.MultiTexCoord3 specifies the texture coordinates as s t r 1 , and Gl.MultiTexCoord4 defines all four components explicitly as s t r q .

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 q are 0 0 0 1 .

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 i = Gl.TEXTURE0 + i.

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