8.1 Glut 259
GLPOLYGONDraws a convexN-sided polygon defined by the vertices.GLLINESNmust be even. Each pair of vertices defines a line segment.GLLINELOOPDraws a closed polygonal line passing through theNvertices.GLTRIANGLESEach consecutive triplet of vertices defines a triangle, for a total ofT=
V/3 triangles, whereV is the number of vertices;V must be a multiple
of three.GLTRIANGLESTRIPDraws a connected group ofN−2 triangles. A triangle is defined by any
three successive vertices.GLTRIANGLEFANDraws a connected group ofN−2 triangles. A triangle is defined by the
first vertex and consecutive pairs of subsequent vertices.GLQUADSEach consecutive quadruplet of vertices defines a quadrilateral, for a total
ofQ=V/4 elements, whereV is the number of vertices;V must be a
multiple of four.GLQUADSTRIPDraw a connected group ofQ=V/ 2 −1 quadrilaterals, whereV is the
number of vertices;V must be even. A quadrilateral is defined by any
two successive vertex pairs. For example, whenV= 4, one quadrilateral
is drawn.Functions defining vertices include, but are not limited to:glVertex2f glVertex2d
glVertex3f glVertex3d