|Copyright||(c) Sven Panne 2002-2016|
|Maintainer||Sven Panne <email@example.com>|
This module corresponds to section 10.8 (Drawing Commands Using Begin and End) of the OpenGL 4.4 specs.
Begin and End Objects
Delimit the vertices that define a primitive or a group of like primitives.
Only a subset of GL commands can be used in the delimited action:
Those for specifying vertex coordinates
and fog coordinates
edgeFlag are allowed. Writing the respective state variables
is allowed in the delimited action, too.
Regardless of the chosen
PrimitiveMode, there is no limit to the number of
vertices that can be defined during a single
triangles, quadrilaterals, and polygons that are incompletely specified are
not drawn. Incomplete specification results when either too few vertices are
provided to specify even a single primitive or when an incorrect multiple of
vertices is specified. The incomplete primitive is ignored; the rest are
The minimum specification of vertices for each primitive is as follows: 1
for a point, 2 for a line, 3 for a triangle, 4 for a quadrilateral, and 3 for
a polygon. Modes that require a certain multiple of vertices are
Quads (4), and
A more efficient, but potentially dangerous version of
The given action is not allowed to throw an exception.
A vertex can begin an edge which lies in the interior of its polygon or on the polygon's boundary.
|Eq EdgeFlag Source #|
|Ord EdgeFlag Source #|
|Show EdgeFlag Source #|
Each vertex of a polygon, separate triangle, or separate quadrilateral
renderPrimitive is marked as the start of either a boundary
or nonboundary (interior) edge.
The vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of the value of the edge flag.
Note that the current edge flag can be updated at any time, in particular