GLUTESSBEGINCONTOUR(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸ’– GLUTESSBEGINCONTOUR β€” the gluTessBeginContour and gluTessEndContour of it all ✨

okay bestie, gather round, because this is the GLUTESSBEGINCONTOUR(3G) manual page and it's literally about drawing the little fence around a contour. no cap. πŸŽ€


🌸 NAME 🌸

gluTessBeginContour, gluTessEndContour β€” delimit a contour description

like, they're the open-quote and close-quote of your contour. the bookends. the "hey bestie we're starting" and the "okay we're done here". πŸ’…


✨ C SPECIFICATION ✨

void gluTessBeginContour( GLUtesselator* tess )

void gluTessEndContour( GLUtesselator* tess )

two functions, both void, both taking one GLUtesselator*. iconic. no return value because they simply do not need to explain themselves. πŸ‘‘


πŸ¦‹ PARAMETERS πŸ¦‹

  • tess β€” specifies the tessellation object (created with gluNewTess). yes, that's the one. the tessellation object. you gotta have one, you can't just vibe into a contour with nothing, babe. it's made with gluNewTess. 🌈

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea. gluTessBeginContour and gluTessEndContour delimit the definition of a polygon contour. that's the whole job. that's the assignment. they're the parentheses, basically. 🫢

inside each gluTessBeginContour/gluTessEndContour pair, there can be zero or more calls to gluTessVertex. zero. or more. both valid, we don't judge. πŸ’–

and the vertices? they specify a closed contour β€” which means the last vertex of each contour is automatically linked to the first. you don't gotta close it yourself, the library does it for you. it's giving thoughtful. it's giving generous. we love that for us. ✨

want more deets on the vertex situation? go read the gluTessVertex reference page. that's where the lore lives. πŸ“–

and here's the big rule, the one that matters, the vibe check that will end you if you fail it:

gluTessBeginContour can only be called between gluTessBeginPolygon and gluTessEndPolygon. like, that is its whole habitat. that's the only window. don't be out here calling it wherever. πŸ™ˆ

🌟 SEE ALSO 🌟

go read your sisters, bestie, they're all connected:

  • gluNewTess(3G)
  • gluTessBeginPolygon(3G)
  • gluTessVertex(3G)
  • gluTessCallback(3G)
  • gluTessProperty(3G)
  • gluTessNormal(3G)
  • gluTessEndPolygon

and that's the whole page, periodt. πŸ’…βœ¨

this little love letter to contour delimiting came to you from the GLUTESSBEGINCONTOUR(3G) manual, and the footer says it's GLUTESSBEGINCONTOUR(3G) all the way down β€” so shoutout to the source and version, and consider yourself officially signed off on. mwah. πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from