Description

glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are associated with the vertex when glVertex 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 glVertex outside of a glBegin/glEnd pair results in undefined behavior.

Python Sample Code

glVertex2f
glVertex2i
glVertex3dv
glVertex3f
glVertex3fv
glVertex4dv
glVertex4f