Gl.Vertex4i (gb.opengl)

Static Sub Vertex4i ( X As Integer, Y As Integer, Z As Integer, W As Integer )

Specify a vertex.

Parameters

x, y, z, w

Specify x, y, z, and w coordinates of a vertex. Not all parameters are present in all forms of the command.

Parameters

v

Specifies a pointer to an array of two, three, or four elements. The elements of a two-element array are x and y; of a three-element array, x, y, and z; and of a four-element array, x, y, z, and w.

Description

Gl.Vertex commands are used within Gl.Begin/Gl.End pairs to specify point, line, and polygon vertices. The current color, normal, texture coordinates, and fog coordinate are associated with the vertex when Gl.Vertex is called.

When only x and y are specified, z defaults to 0 and w defaults to 1. When x, y, and z are specified, w defaults to 1.

Notes

Invoking Gl.Vertex outside of a Gl.Begin/Gl.End pair results in undefined behavior.

See also

Gl.Begin, Gl.EvalCoord, Gl.FogCoord, Gl.Index, Gl.Material, Gl.MultiTexCoord, Gl.Normal, Gl.Rect, Gl.TexCoord, Gl.VertexPointer

See original documentation on OpenGL website