glEdgeFlag(3G)glEdgeFlag(3G)NAME
glEdgeFlag, glEdgeFlagv - option edges as either boundary or nonbound‐
ary
SYNOPSIS
void glEdgeFlagv(
const GLboolean *option );
PARAMETERS
Specifies a pointer to an array that contains a single boolean element,
which replaces the current edge option value.
DESCRIPTION
Each vertex of a polygon, separate triangle, or separate quadrilateral
specified between a glBegin()/glEnd() pair is marked as the start of
either a boundary or nonboundary edge. If the current edge option is
true when the vertex is specified, the vertex is marked as the start of
a boundary edge. Otherwise, the vertex is marked as the start of a non‐
boundary edge. glEdgeFlag() sets the edge option bit to GL_TRUE if
option is GL_TRUE, and to GL_FALSE otherwise.
The vertices of connected triangles and connected quadrilaterals are
always marked as boundary, regardless of the value of the edge option.
Boundary and nonboundary edge options on vertices are significant only
if GL_POLYGON_MODE is set to GL_POINT or GL_LINE. See glPolygonMode().
NOTES
The current edge option can be updated at any time. In particular,
glEdgeFlag() can be called between a call to glBegin() and the corre‐
sponding call to glEnd().
ASSOCIATED GETSglGet() with argument GL_EDGE_FLAG
SEE ALSOglBegin(3), glEdgeFlagPointer(3), glPolygonMode(3)glEdgeFlag(3G)