donn <[email protected]> writes: > Is there any way to draw cogl paths from an SVG path string? I was > thinking of going via a clutterPath (clutter_path_set_description) and > somehow out to cogl. This would make drawing stuff in cogl a lot > easier (and DRY because I would describe all paths in SVG anyway.)
You could take a look at the code for the clutter_path_to_cairo_path function. It should be relatively easy to copy that function into your code and adapt it to call the respective cogl path functions instead. There was talk of adding a clutter_path_to_cogl_path function in Clutter but I guess it never happened. Note however the ClutterPath string description is a subset of the SVG path string. It seems to work with the strings generated by Inkscape though. - Neil -- To unsubscribe send a mail to [email protected]
