set the current texture coordinates
Signature
Parameters
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
glMultiTexCoord
specifies texture coordinates in one, two, three, or four
dimensions.
glMultiTexCoord1
sets the current texture
coordinates to
;
a call to
glMultiTexCoord2
sets them to
.
Similarly,
glMultiTexCoord3
specifies the texture coordinates as
,
and
glMultiTexCoord4
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
The current texture coordinates can be updated at any time.
It is always the case that
GL_TEXTURE
=
GL_TEXTURE0
+
.
Associated Gets
glGet
with argument
GL_CURRENT_TEXTURE_COORDS
with appropriate
texture unit selected.
glGet
with argument
GL_MAX_TEXTURE_COORDS
See Also
Copyright
Copyright
1991-2006
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
http://oss.sgi.com/projects/FreeB/
.
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glMultiTexCoord2f
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson6-multi.py
Lines: 85, 88, 94, 165, 165, 166, 166, 167, 167, 168, 168, 171, 171, 172, 172, 173, 173, 174, 174, 177...
