gl.TexCoord(s[, t, r, q])
gl.TexCoord()
specifies texture coordinates in one, two, three, or four dimensions.
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).
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().
Alternatively, you can also pass a table that contains one to four coordinates to gl.TexCoord()
.
Please consult an OpenGL reference manual for more information.
#GL_CURRENT_TEXTURE_COORDS