• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 631
  • Last Modified:

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.

Paul
0
PaulCaswell
Asked:
PaulCaswell
  • 2
1 Solution
 
LordWolfyCommented:
Try Allegro - http://www.talula.demon.co.uk/allegro/

Its mainly for games but has an extensive variety of graphics capabilities including for OpenGL
0
 
fridomCommented:
OpenGL itself is worth a look but also, Cairo from GTK+
Please check.
http://cairographics.org/

Regards
Friedrich
0
 
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?

Paul
0
 
LordWolfyCommented:

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.
0

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now