Search:

EZ_Begin(3) EZWGL Functions EZ_Begin(3)## NAME

EZ_Begin, EZ_End - delimit the vertices of a primitive## SYNOPSIS

#include<EZ.h>voidEZ_Begin(intmode)voidEZ_End(void)## ARGUMENTS

modeSpecify the primitive that will be created from vertices between EZ_Begin and the paring EZ_End.modeis one of EZ_LINES, EZ_LINE_STRIP, EZ_LINE_LOOP, EZ_TRIANGLES, EZ_TRIANGLE_STRIP, EZ_TRIANGLE_FAN, EZ_QUADS, EZ_QUAD_STRIP, EZ_POLYGON and EZ_POINTS.## DESCRIPTION

TheEZ_BeginandEZ_Endpair delimit vertices that define a primitive or a list of primitives.modedetermines the interpretation of subsequent vertices. The interpretation ofmodeis described below.EZ_LINESTreats each pair of vertices as a separate line segment.EZ_LINE_STRIPSubsequent vertices defines a polyline.EZ_LINE_LOOPSubsequent vertices defines a closed polyline.EZ_TRIANGLESTreats each triplet of vertices as a separate triangle.EZ_TRIANGLE_STRIPSubsequent vertices defines a triangular strip. The first 3 vertices defines the first triangle; vertices 3,2,4 defines the second triangle; vertices 3,4,5 defines the third triangle ...EZ_TRIANGLE_FANSubsequent verticse defines a group of triangles. All of them share the first vertex. Thus, vertices 1,2,3 defines the first triangle; vertices 1,2,4 defines the second triangle ...EZ_QUADSTreats every group of four vertices as a separate quadrilateral.EZ_QUAD_STRIPSubsequent verticse defines a group of quadrilaterals. Vertices 1,2,4,3 defines the first one; vertices 3,4,6,5 defines the second one ...EZ_POLYGONSubsequent vertices defines a polygon.EZ_POINTSTreats subsequent vertices as individual points.EZ_Begin/EZ_Endpair cannot be nested. The only commands allowed inside aEZ_Begin/EZ_Endpair are: EZ_Vertex, EZ_Color, EZ_Index, EZ_Normal, EZ_Material, EZ_Light, EZ_CallList.## SEE ALSO

EZ_Normal3f(3), EZ_Color3f(3), EZ_Index(3) EZWGL EZ_Begin(3)

Search: