2.0 3.0 > comp > gb.opengl > gl > texcoord1i
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration
Documentation
 History

Gl.TexCoord1i (gb.opengl)
`Static Sub TexCoord1i ( S As Integer )`

Set the current texture coordinates.

### Parameters

s, t, r, q

Specify s, t, r, and q texture coordinates. Not all parameters are present in all forms of the command.

### Parameters

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.

### Description

Gl.TexCoord specifies texture coordinates in one, two, three, or four dimensions. Gl.TexCoord1 sets the current texture coordinates to $\left(\mathit{s},0,0,1\right)$; a call to Gl.TexCoord2 sets them to $\left(\mathit{s},\mathit{t},0,1\right)$. Similarly, Gl.TexCoord3 specifies the texture coordinates as $\left(\mathit{s},\mathit{t},\mathit{r},1\right)$, and Gl.TexCoord4 defines all four components explicitly as $\left(\mathit{s},\mathit{t},\mathit{r},\mathit{q}\right)$.

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, Gl.TexCoord can be called between a call to Gl.Begin and the corresponding call to Gl.End.

When the ARB_imaging extension is supported, Gl.TexCoord always updates texture unit Gl.TEXTURE0.

### Associated Gets

Gl.Get with argument Gl.CURRENT_TEXTURE_COORDS