GLEDGEFLAG(3G)
β¨ GLEDGEFLAG(3G) β¨
okay bestie, welcome to the GLEDGEFLAG page, section 3G of the manual π
this one is all about telling OpenGL which edges are boundary and which are nonboundary, and honestly? it's giving "small function, big vibes" π¦
πΈ NAME πΈ
glEdgeFlag, glEdgeFlagv β flag edges as either boundary or nonboundary π
π§ C SPECIFICATION π§
void glEdgeFlag( GLboolean flag )
π PARAMETERS π
flagβ this is the current edge flag value you're setting, and it's eitherGL_TRUEorGL_FALSE. the initial value isGL_TRUE, no cap π
π§ C SPECIFICATION π§
void glEdgeFlagv( const GLboolean *flag )
π PARAMETERS π
flagβ a pointer to an array holding a single boolean element, and that element replaces the current edge flag value β¨
π DESCRIPTION π
so here's the tea β every vertex of a polygon, separate triangle, or separate quadrilateral that you specify between a glBegin/glEnd pair gets marked as the start of either a boundary edge or a nonboundary edge. if the current edge flag is true at the moment you specify that vertex, the vertex is marked as the start of a boundary edge π₯ otherwise, it's marked as the start of a nonboundary edge.
glEdgeFlag sets the edge flag bit to GL_TRUE if flag is GL_TRUE, and to GL_FALSE otherwise. simple as that, periodt π
now the important part bestie, don't skip this: the vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of what the edge flag value is. like, the flag doesn't even get a vote there π
and one more thing β boundary and nonboundary edge flags on vertices are significant only if GL_POLYGON_MODE is set to GL_POINT or GL_LINE. see glPolygonMode for that whole situation π«Ά
π NOTES π
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. yes, right in the middle of the pair. iconic behaviour, we love to see it β¨
π ASSOCIATED GETS π
glGetwith argumentGL_EDGE_FLAGπ
π¦ SEE ALSO π¦
glBegin(3G)glEdgeFlagPointer(3G)glPolygonMode(3G)
and that's the whole page, bestie!! this was GLEDGEFLAG(3G) from the OpenGL manual, section 3G β same title on the way out as on the way in, because symmetry is iconic π go flag some edges, you're doing amazing sweetie π«Άβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms