title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
glEdgeFlag function (Gl.h) |
Flags edges as either boundary or nonboundary. | glEdgeFlag function (Gl.h) |
cebaa4af-a3bc-4396-9ee0-8cc10bcaf256 |
|
|
|
|
|
reference |
05/31/2018 |
Flags edges as either boundary or nonboundary.
void WINAPI glEdgeFlag(
GLboolean flag
);
-
flag
-
Specifies the current edge flag value, either TRUE or FALSE.
This function does not return a value.
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 flag is TRUE when the vertex is specified, the vertex is marked as the start of a boundary edge. If the current edge flag is FALSE, the vertex is marked as the start of a nonboundary edge. The glEdgeFlag function sets the edge flag to TRUE if flag is nonzero, FALSE otherwise.
The vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of the value of the edge flag.
Boundary and nonboundary edge flags on vertices are significant only if GL_POLYGON_MODE is set to GL_POINT or GL_LINE. See glPolygonMode.
Initially, the edge flag bit is TRUE.
The current edge flag can be updated at any time. In particular, glEdgeFlag can be called between a call to glBegin and the corresponding call to glEnd.
The following functions retrieve information related to glEdgeFlag:
glGet with argument GL_EDGE_FLAG
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|