Vertex2
The Vertex2 function is used within Begin/End pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are associated with the vertex when Vertex is called.
Vertex2(x,y);
Specifies a point in the plane (z = 0). Example:
Begin(GL_POLYGON);
Vertex2(x1, y1);
Vertex2(x2, y1);
Vertex2(x2, y2);
Vertex2(x1, y2);
End( );
is equivalent to
Rect( x1, y1, x2, y2 );
See Also