OpenGlES 2D Vector Graphics Loading and Drawing?

Discussion in 'iOS Programming' started by MatthewF, Jul 28, 2010.

  1. macrumors newbie

    Joined:
    Jun 27, 2010
    #1
    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?



    Thanks,
    Matt
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. thread starter macrumors newbie

    Joined:
    Jun 27, 2010
    #3
    Thanks. :) I'll look into this qSVGRenderer.
    Hopefully I can get it hooked up and working in my app.


    Thanks,
    Matt
     
  4. thread starter macrumors newbie

    Joined:
    Jun 27, 2010
    #4
    Hmm, the qSVGRenderer appears not to be for the iPhone. So I'm now checking out Sauvage


    Thanks,
    Matt
     
  5. thread starter macrumors newbie

    Joined:
    Jun 27, 2010
    #5
    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.


    Matt
     

Share This Page