I am creating application, which requires the display of concave polygons, polygons containing holes and polygons intersecting edges.
How can I get this?
If your polygons aren’t transparent, you’ll need to tesselate your polygons into triangles using something like the GLU polygon tesselator and then render the triangles. The zbuffer will automatically take care of intersecting polygons.
If your polygons are possibly transparent, then in addition to tesselating them, you’ll also have to clip & sort them, and things get a whole lot more complicated…