GLUBEGINPOLYGON(3G)
β¨ GLUBEGINPOLYGON π
okay bestie, welcome to the GLUBEGINPOLYGON(3G) page, aka the manual for gluBeginPolygon and gluEndPolygon β the two lil functions that delimit a polygon description π no cap.
πΈ NAME πΈ
gluBeginPolygon, gluEndPolygon β delimit a polygon description. that's it, that's the whole job π«Ά
π C SPECIFICATION π
void gluBeginPolygon( GLUtesselator* tess )
void gluEndPolygon( GLUtesselator* tess )
π¦ PARAMETERS π¦
tessβ specifies the tessellation object, and you make one of those withgluNewTess. that's the one, that's your girl β¨
π DESCRIPTION π
so gluBeginPolygon and gluEndPolygon delimit the definition of a nonconvex polygon. the way that works is:
- first you call
gluBeginPolygon. - then you define the contours of the polygon by calling
gluTessVertexfor each vertex, andgluNextContourto start each new contour. - finally you call
gluEndPolygonto signal that the definition is done, periodt.
if you want more deets, the gluTessVertex and gluNextContour reference pages are right there, go read them π
once gluEndPolygon gets called, the polygon is tessellated, and the resulting triangles are described through callbacks. gluTessCallback has the descriptions of those callback functions, iykyk π«
π NOTES π
this command is obsolete and is provided for backward compatibility only. it's giving legacy, fr fr π
calls to gluBeginPolygon are mapped to gluTessBeginPolygon followed by gluTessBeginContour. calls to gluEndPolygon are mapped to gluTessEndContour followed by gluTessEndPolygon. so like, it still works, it's just the old route π
β EXAMPLE β
a quadrilateral with a triangular hole in it can be described like this, and yes this is the exact code, no edits bestie:
gluBeginPolygon(tobj);
gluTessVertex(tobj, v1, v1);
gluTessVertex(tobj, v2, v2);
gluTessVertex(tobj, v3, v3);
gluTessVertex(tobj, v4, v4); gluNextContour(tobj, GLU_INTERIOR);
gluTessVertex(tobj, v5, v5);
gluTessVertex(tobj, v6, v6);
gluTessVertex(tobj, v7, v7); gluEndPolygon(tobj);
π SEE ALSO π
gluNewTess(3G)gluNextContour(3G)gluTessCallback(3G)gluTessVertex(3G)gluTessBeginPolygon(3G)gluTessBeginContour(3G)
and that's the whole page, bestie π«Ά this was GLUBEGINPOLYGON(3G) β same title, same version, sitting right there at the bottom where it always is. go tessellate something iconic πβ¨
π¦ 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