Signature
Parameters
Description
glTexCoord
specifies texture coordinates in
one,
two,
three, or
four dimensions.
glTexCoord1
sets the current texture coordinates to
;
a call to
glTexCoord2
sets them to
.
Similarly,
glTexCoord3
specifies the texture coordinates as
,
and
glTexCoord4
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,
glTexCoord
can be called between a call to
glBegin
and the corresponding
call to
glEnd
.
Associated Gets
glGet
with argument
GL_CURRENT_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.
glTexCoord
glTexCoord1f
glTexCoord2d
glTexCoord2dv
glTexCoord2f
OpenGLContext
tests/nehe6_compressed.py
Lines: 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81, 83, 84, 85, 86...
OpenGLContext
tests/nehe8.py
Lines: 187, 188, 189, 190, 193, 194, 195, 196, 199, 200, 201, 202, 205, 206, 207, 208, 211, 212, 213, 214...
OpenGLContext
tests/nehe6_convolve.py
Lines: 162, 163, 164, 165, 167, 168, 169, 170, 172, 173, 174, 175, 177, 178, 179, 180, 182, 183, 184, 185...
OpenGLContext
tests/nehe7.py
Lines: 181, 182, 183, 184, 187, 188, 189, 190, 193, 194, 195, 196, 199, 200, 201, 202, 205, 206, 207, 208...
OpenGLContext
tests/nehe6_timer.py
Lines: 106, 107, 108, 109, 111, 112, 113, 114, 116, 117, 118, 119, 121, 122, 123, 124, 126, 127, 128, 129...
OpenGLContext
tests/nehe6.py
Lines: 92, 93, 94, 95, 97, 98, 99, 100, 102, 103, 104, 105, 107, 108, 109, 110, 112, 113, 114, 115...
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson18.py
Lines: 146, 147, 148, 149, 152, 153, 154, 155, 158, 159, 160, 161, 164, 165, 166, 167, 170, 171, 172, 173...
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson6.py
Lines: 128, 129, 130, 131, 134, 135, 136, 137, 140, 141, 142, 143, 146, 147, 148, 149, 152, 153, 154, 155...
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson41.py
Lines: 229, 230, 231, 232, 242, 243, 244, 245, 252, 253, 254, 255, 262, 263, 264, 265, 272, 273, 274, 275
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson16.py
Lines: 111, 112, 113, 114, 117, 118, 119, 120, 123, 124, 125, 126, 129, 130, 131, 132, 135, 136, 137, 138...
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson23.py
Lines: 98, 99, 100, 101, 105, 106, 107, 108, 112, 113, 114, 115, 119, 120, 121, 122, 126, 127, 128, 129...
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson12.py
Lines: 78, 79, 80, 81, 83, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 96, 98, 99, 100, 101...
{LGPL} VisionEgg
VisionEgg/SphereMap.py
Lines: 475, 478, 481, 484, 757, 760, 763, 766, 1117, 1120, 1123, 1126
{LGPL} VisionEgg
VisionEgg/Textures.py
Lines: 1496, 1499, 1502, 1505, 1608, 1611, 1614, 1617, 1830, 1833, 1836, 1839, 1855, 1858, 1861, 1864, 1869, 1872, 1875, 1878...
{LGPL} Pyggel
pyggel/geometry.py
Lines: 210, 212, 214, 216, 219, 221, 223, 225, 270, 272, 274, 276, 279, 281, 283, 285, 433
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/Visualisation/PhysicsGraph3D/Particles3D.py
Lines: 521, 523, 525, 527, 530, 532, 534, 536
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 871, 872, 873, 874
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 194, 196, 198, 200
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Button.py
Lines: 175, 177, 179, 181, 184, 186, 188, 190
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 101, 102, 103, 104
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Label.py
Lines: 150, 152, 154, 156, 159, 161, 163, 165
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/Utils/Particles3D.py
Lines: 257, 259, 261, 263, 266, 269, 272, 275
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/Experiments/Cubes.py
Lines: 207, 208, 209, 210, 214, 215, 216, 217, 220, 221, 222, 223, 226, 227, 228, 229, 232, 233, 234, 235...
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 849, 850, 851, 852
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 194, 196, 198, 200
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Button.py
Lines: 179, 181, 183, 185, 188, 191, 194, 197
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 101, 102, 103, 104
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Label.py
Lines: 150, 152, 154, 156, 159, 161, 163, 165
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/Button3D.py
Lines: 219, 221, 223, 225, 228, 230, 232, 234
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/PygameWrapperPlane.py
Lines: 159, 160, 161, 162
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/TexPlane.py
Lines: 149, 150, 151, 152
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/Display3D.py
Lines: 487, 488, 489, 490
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Button.py
Lines: 107, 109, 111, 113, 116, 118, 120, 122
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/PygameWrapperPlane.py
Lines: 80, 82, 84, 86
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/TexPlane.py
Lines: 62, 63, 64, 65
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 538, 539, 540, 541
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Visualisation/PhysicsGraph3D/Particles3D.py
Lines: 521, 523, 525, 527, 530, 532, 534, 536
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 871, 872, 873, 874
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 194, 196, 198, 200
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/Button.py
Lines: 175, 177, 179, 181, 184, 186, 188, 190
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 101, 102, 103, 104
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/Label.py
Lines: 150, 152, 154, 156, 159, 161, 163, 165
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/3D/Button3D.py
Lines: 219, 221, 223, 225, 228, 230, 232, 234
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/3D/playground/Button.py
Lines: 107, 109, 111, 113, 116, 118, 120, 122
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/3D/playground/PygameWrapperPlane.py
Lines: 80, 82, 84, 86
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 848, 849, 850, 851
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 194, 196, 198, 200
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Button.py
Lines: 175, 177, 179, 181, 184, 186, 188, 190
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 101, 102, 103, 104
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Label.py
Lines: 150, 152, 154, 156, 159, 161, 163, 165
glTexCoord2fv
glTexCoord3f