Name
gl.Vertex -- specify a vertex
Synopsis
gl.Vertex(x, y[, z, w])
Function
gl.Vertex() is 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.

Alternatively, you can also pass a table containing two to four vertex coordinates to this function.

Please consult an OpenGL reference manual for more information.

Inputs
x
specify the x coordinate of a vertex
y
specify the y coordinate of a vertex
z
optional: specify the z coordinate of a vertex (defaults to 0)
w
optional: specify the w coordinate of a vertex (defaults to 1)

Show TOC