title: Render a vector graphic (.svg) in C++
body: <p>My and a friend are working on a 2D  game where the graphics will be .svg files and we will scale them appropriately either by rasterizing them first, or rendering them directly on a surface (which still would require rasterization at some point).</p>
  <p>The problem is, I've been looking all day to find a library that will allow me to take an .svg file and eventually get it to render in allegro. As far as I know, it would involve rasterization into some sort of format that allegro can read and then allegro could render the &quot;flattened&quot; image.</p>
  <p>So what are some C++ libraries I could use for taking an .SVG file and &quot;flattening&quot; it so I can render it? The library obviously needs to support scaling too so I can scale the vector graphic then rasterize it.</p>
  <p>I'm using Windows and Visual C++ Express 2010.</p>
  <p>I've tried Cairo, but it only allows writing of .svg files and doesn't allow you to read the .svg file. I've also looked into librsvg which works with Cario, but I was having a lot of trouble getting it to work properly on Windows (because it has loads of GNOME dependencies). If you have any guides for getting these to work (on Windows) that would be great too.</p>