Canvas SVG: Difference between revisions

Jump to navigation Jump to search
Line 14: Line 14:
* Stuart suggested to port svg.nas to C++ (that would still not give us any threading benefits)
* Stuart suggested to port svg.nas to C++ (that would still not give us any threading benefits)


== Status ==
after a bit of googling, it actually turns out that there is already a dedicated plugin for SVG handling via OSG - so that would probably be the least amount of work, given that we already have Canvas::Image using the same ReaderWriter mechanism under the hood.
I don't know anything about the plugin's state - but I suppose it'll we much more feature-complete than our own little parser.
And it being an OSG plugin, it will automatically be able to run in the background - so we won't have to add our own threading code.
Also, it's not a totally new dependency, rather just another OSG plugin - so comparatively easy to support via the existing build system (according to the OSG website, the plugin only needs librsvg)


[[File: Svg-via-canvas-image.png|Native SVG handling via [[Canvas Image]] and the OSG SVG plugin (via librsvg)]]
[[File: Svg-via-canvas-image.png|Native SVG handling via [[Canvas Image]] and the OSG SVG plugin (via librsvg)]]

Navigation menu