I have a lot of convex and concave predefined polygons. The example is:
As the SFML documentation says:
...SFML is unable to draw concave shapes. If you need to draw a concave shape, you'll have to split it into multiple convex polygons...
So, the 'concave' is crucial here. Splitting algorithm can be hard to write (and also time-expensive to use), thousands of shapes - one in another. Any idea (or good practices) how to approach solving the problem?