• C

Portable Graphics library in C

Hi All,

I am looking for a graphics library that will provide me with as many of the following features as possible:

1. Portability.

The tool I am working on will be useful on many platforms and I don't want to tie myself down to a specific OS at this stage.

2. C

I am hoping to implement a form of this tool as a device driver. Currently it is particularly complicated to write Windows device drivers in any language other than C.

3. Still AND moving image features.

This is less important. I am sure it should be possible to add moving image I/O but it certainly would be nice to have it for free as it were.

4. Hardware assist if available.

But only if it does not interfere with 1. above.

5. Source.

For debugging and deployment primarily. Not crucial but a definite plus.

6. 2d and 3d

Any maths stuff that comes with it needs to be capable of handling 3d as well as the usual 2d.

Clearly OpenGL is a good candidate but I would like to at least look at some other contenders. Thanks all in advance for your suggestions.

LVL 16
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try Allegro - http://www.talula.demon.co.uk/allegro/

Its mainly for games but has an extensive variety of graphics capabilities including for OpenGL

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OpenGL itself is worth a look but also, Cairo from GTK+
Please check.

PaulCaswellAuthor Commented:
Thanks Friedrich and LordW,

Both good ideas.

I had a look at Cairo. Am I right that Cairo relies on OpenGL? In which case Allegro may be my best choice. It would probably still function in DriverSpace while I doubt that the OpenGL stuff would still be available down there. Am I right?


OpenGL support is usually included in the drivers for most graphics cards.  The only problem is that its not well maintained.  It depends how complex the graphics need to be.  If its pretty simple then OpenGL should work fine.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.