I made a mistake, plutosvg and nanosvg was rendering some svg as a black shadow only. UseSvgImage is fine. Great to be true, I'm sticking to it to render toolbar and menu icons.
It will hopefully be a bit more flexible and faster than them to on redraws. a few things to work out on the displaylist
and maybe I can get it down to two lines of code to use it for loading an SVGLoad and drawing it SVGDrawtoCanvas
SVGDrarwtoImage SVGDrawtoSprite SVGDrawtoTexture SVGDrawtoMateiral SVGDrawtoWindow
It might sound funny, but there’s really no alternative to integrating the powerful Skia library into PureBasic. In my view, it covers a vast portion of what users typically expect from a graphic and vector-based library.
There’s no need to write a parser for SVG from scratch either.
I don't see any issue in writing it in pb, The amount of time it would take to import and wrap sika, I could adapt the usesvgmodule a few times over.
Sika is a big lib and unless it has a c lib or the c++ uses pure virtual classes you'd be need to write wrapper functions in c++ to export the classes.