Name
gl.TexCoord -- set the current texture coordinates
Synopsis
gl.TexCoord(s[, t, r, q])
Function
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.

Inputs
s
specify the s texture coordinate
t
optional: specify the t texture coordinate (defaults to 0)
r
optional: specify the r texture coordinate (defaults to 0)
q
optional: specify the q texture coordinate (defaults to 1)
Associated gets
gl.Get() with argument #GL_CURRENT_TEXTURE_COORDS


Show TOC