views:

58

answers:

2

Hi,

I want to use Vector graphics in an OpenGL game. I want to use vector graphics because they can be scaled cheaply without loss of quality.

Of course, the drawing should be hardware accelerated, so I do not want to draw in software to a texture.

Now I am wondering if a library doing this already exists. Is there a library, that can load some vector graphic format and display it using OpenGL?

THanks! Nathan

+1  A: 

Take a look at OpenVG.

tibur
Thanks. OpenVG seems cool. But I am a bit confused. It is only a standard, not an library, right? Does a (open source) hardwar accelerated implementation exist for Linux and windows?
Well. I thought that there was an Nvidia implementation. Look at this thread: [Best OpenVG implementation?](http://stackoverflow.com/questions/401422/best-openvg-implementation).
tibur
A: 

Lots of discussion in this Slashdot post about renderers for SVG. I don't know which of them using OpenGL, if any.

This SO question also has several suggestions, including sauvage which is done in Python. Cairo is also apparently a possibility.

There are several powerful libraries that render SVG without OpenGL. I wonder if it's not really that necessary: maybe drawing lines is already accelerated enough on most systems' graphics cards.

LarsH