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

Gl.Vertex3f (gb.opengl)
`Static Sub Vertex3f ( X As Float, Y As Float, Z As Float )`

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 $\mathit{x}$ and $\mathit{y}$; of a three-element array, $\mathit{x}$, $\mathit{y}$, and $\mathit{z}$; and of a four-element array, $\mathit{x}$, $\mathit{y}$, $\mathit{z}$, and $\mathit{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 $\mathit{x}$ and $\mathit{y}$ are specified, $\mathit{z}$ defaults to 0 and $\mathit{w}$ defaults to 1. When $\mathit{x}$, $\mathit{y}$, and $\mathit{z}$ are specified, $\mathit{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.CallList, Gl.Color, Gl.EdgeFlag, Gl.EvalCoord, Gl.FogCoord, Gl.Index, Gl.Material, Gl.MultiTexCoord, Gl.Normal, Gl.Rect, Gl.TexCoord, Gl.VertexPointer