[cairo] Rendering SVGs in OpenGL
Luca Barbato
lu_zero at gentoo.org
Thu Nov 4 11:52:41 PDT 2010
On 10/29/2010 11:48 PM, Nathan Hüsken wrote:
> Hi,
>
> I am looking for a library to use Vector Graphics (preferable SVGs) in
> games. I wonder if cairo is a good choice.
> So I have some questions:
>
> When cairo renders svgs using the OpenGL backend, is the rendering done
> using OpenGL calls or is it done in software?
> When searching for OpenGL with cairo, I only find this:
> http://cairographics.org/OpenGL/
> but if I understand correctly, there cairo renders to a texture which is
> then used in OpenGL. That is not what I want.
>
> What are the best resources to learn using cairo with OpenGL and SVG?
You might have a look on the openvg backend. It appears to work (once
you add those 32 lines of X11 calls to get a window... ).
lu
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
More information about the cairo
mailing list