Examples
To draw a surface with filled back-facing polygons and outlined front-facing polygons,
call
glPolygonMode(GL_FRONT, GL_LINE);
Notes
Vertices are marked as boundary or non-boundary with an edge flag. Edge flags are
generated internally by the GL when it decomposes polygons; they can be set explicitly
using glEdgeFlag.
Errors
•
•
Associated Gets
glGet with argument GL_POLYGON_MODE
See Also
glBegin,
glEdgeFlag,
glLineStipple,
glLineWidth,
glPointSize,
glPolygonStipple
Chapter 14
GL_INVALID_ENUM is generated if either face or mode is not an accepted value.
GL_INVALID_OPERATION is generated if glPolygonMode is executed between the
execution of glBegin and the corresponding execution of glEnd.
P
glPolygonMode
341