I tested nanovg library and I could use it to draw in the LibreCAD window.
The compilation is easier, but I needed to add -fPIC compilation flag.
We need some modifications to integrate it in LibreCAD 3.
- We need to call a function to begin a frame and to end a frame. A begin and end function (empty by default) could be added to LCPainter.
- There is no clear function, that might be called by the begin frame function.
- OpenGL initialization code might be modified.