Howto:Extend the Canvas SVG module: Difference between revisions

Jump to navigation Jump to search
Line 5: Line 5:


== Background ==
== Background ==
FlightGear's SVG support is relatively limited - i.e. it's just a tiny subset of SVG that is actually supported by the SVG parser currently, which is then mapped to OpenVG primitives (Canvas.Path).
Depending on what people have in mind, it may actually be helpful to also learn more about Canvas.Path (see api.nas) and OpenVG in general, because that is how the svg.nas module works behind the scenes when it translates SVG markup to OpenVG paths.
And that's also the easiest way to extend the SVG parser so that it supports additional features, such as for example the image tag.


== Test Code ==
== Test Code ==

Navigation menu