首页 > comp > gb.opengl > gl > texcoord4i 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
Gl.TexCoord4i (gb.opengl)
Static Sub TexCoord4i ( S As Integer, T As Integer, R As Integer, Q 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 s 0 0 1 ; a call to Gl.TexCoord2 sets them to s t 0 1 . Similarly, Gl.TexCoord3 specifies the texture coordinates as s t r 1 , and Gl.TexCoord4 defines 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).

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

参见

Gl.MultiTexCoord, Gl.TexCoordPointer, Gl.Vertex

See original documentation on OpenGL website