View Full Version : OpenGlES 2D Vector Graphics Loading and Drawing?
Jul 28, 2010, 02:32 PM
In my game all my images are png though recently I've been toying with the idea of vector images. Where they can be scaled/rotated without loss and small in file size.
How would you load a vector image file such as SVG and draw it in OpenGlES?
Jul 28, 2010, 10:05 PM
Google brought me here:
Jul 28, 2010, 10:43 PM
Thanks. :) I'll look into this qSVGRenderer (http://doc.trolltech.com/4.2/qsvgrenderer.html#details).
Hopefully I can get it hooked up and working in my app.
Jul 28, 2010, 11:03 PM
Hmm, the qSVGRenderer appears not to be for the iPhone. So I'm now checking out Sauvage (http://lii-enac.fr/~conversy/research/sauvage/index.html)
Jul 30, 2010, 11:11 AM
No luck. I have figured out that I can get vector graphics by converting my SVG file to PDF and loading the PDF and using it like a regular image.
Sadly I need to rasterize it to use it as a texture in OpenGl.