I was wondering if there was a library or another way to produce multi contour polygons in OpenGL. I did code profiling and the GLUTesselator is killing my loop. Thanks
Bounty
+50 for a library with a GPL-compatible license, and ideally 3D (second best would be 2.5D like GLUtesselator itself.)
There's always GPC.
EDIT: Some others:
Flipcode mystery triangulator. Slower than GPC in my extremely limited, probably wrong tests.
poly2tri is BSD-licensed.
EDIT2: Earcut.hpp is now a thing.
For whatever's worth, the SGI Free License B 2.0 is now GPL-compatible, being essentially identical to the X11 license, according to the GNU project:
http://www.gnu.org/licenses/license-list.html#SGIFreeB
http://www.gnu.org/licenses/license-list.html#X11License
The SGI Free License B 2.0 is the license under which the GLU tessellator in GLU 9.0.0 has been released:
ftp://ftp.freedesktop.org/pub/mesa/glu/
So go ahead and use the GLU tessellator in your GPL project!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With