Method GL.glTexCoord()
- Method
glTexCoord
voidglTexCoord(float|int|array(float|int)s,float|int|voidt,float|int|voidr,float|int|voidq)- Description
glTexCoord specifies texture coordinates in one, two, three, or four dimensions.
glTexCoord1sets the current texture coordinates to (s, 0, 0, 1); a call toglTexCoord2sets them to (s, t, 0, 1). Similarly,glTexCoord3specifies the texture coordinates as (s, t, r, 1), andglTexCoord4defines 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, and q are (0, 0, 0, 1).
- Parameter
s Specify s, t, r, and q texture coordinates. Not all parameters are present in all forms of the command.
- Parameter
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.