gl.Vertex(x, y[, z, w])
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.