The old glscopeclient worked because Cairo handles the drawing.
In nglscopeclient it uses ImGUI and this only handles convex polygons, so tesselation is needed.
Related ImGUI issue and a ISC licensed, header only library to convert arbitrary polygon to triangles :
Title says it all.
The old
glscopeclient
worked because Cairo handles the drawing. Innglscopeclient
it uses ImGUI and this only handles convex polygons, so tesselation is needed.Related ImGUI issue and a ISC licensed, header only library to convert arbitrary polygon to triangles :
https://github.com/ocornut/imgui/issues/760 https://github.com/mapbox/earcut.hpp