Open GoogleCodeExporter opened 9 years ago
>> this code only works reliably with convex polygons
Because of this I didn't add my own realization of rendering polygons to ZenGL.
Polygons are not needed so often. And if you need to render arbitrary polygons
you will face with triangles. For this ZenGL have pr2d_TriList function. So, if
you want to render arbitrary polygons, you can use triangulation functions and
pr2d_TriList :) For using triangulation you can look at code here:
http://zengl.org/forum/index.php/topic,80.msg283.html#msg283
That demo a bit old, so maybe some modification is needed. After demo starts
you can draw arbitrary textured polygon via left mouse button and draw in it
holes via right mouse button.
Original comment by dr.andru@gmail.com
on 26 Jan 2012 at 4:42
Thanks for the info and demo. I will try it out.
Original comment by bil...@planet.nl
on 26 Jan 2012 at 5:02
Original issue reported on code.google.com by
bil...@planet.nl
on 26 Jan 2012 at 4:17