Jump to content

  • Log In with Google      Sign In   
  • Create Account

Good library to use for 2d game development with c


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 game of thought   Members   -  Reputation: 213

Like
0Likes
Like

Posted 30 October 2012 - 05:09 PM

What is a good graphical library to use with c? Preferably i would like it to be quite low level and fast because i will be using it on a raspberry pi and i would like to learn about the computer itself while programming. Can anybody suggest any good tutorials for this library as well because google cannot tell me the quality of a tutorial from first glance?

Sponsor:

#2 RulerOfNothing   Members   -  Reputation: 1164

Like
4Likes
Like

Posted 30 October 2012 - 05:34 PM

A good low level graphics library is SDL and I have heard good things about LazyFoo's tutorials for SDL.

Edited by RulerOfNothing, 30 October 2012 - 05:34 PM.


#3 LennyLen   Crossbones+   -  Reputation: 4022

Like
2Likes
Like

Posted 30 October 2012 - 06:40 PM

Another suggestion is Allegro. It's similar to SDL, but gets updated more frequently and has a (IMO) more supportive community.

#4 incertia   Crossbones+   -  Reputation: 779

Like
1Likes
Like

Posted 30 October 2012 - 07:50 PM

Did some searching, Cairo might also be a good candidate.
what

#5 LennyLen   Crossbones+   -  Reputation: 4022

Like
2Likes
Like

Posted 31 October 2012 - 06:31 AM

Did some searching, Cairo might also be a good candidate.


Do note however that Cairo is a Vector Graphics library, which makes it inefficient for bitmap based graphical processing (if that is what is wanted). Also, if used for game programming, you will need to use additional libraries for audio and input, or anything else that gaming libraries usually provide.

#6 jbadams   Senior Staff   -  Reputation: 19366

Like
0Likes
Like

Posted 01 November 2012 - 02:03 AM

Unless you do something unusual you'll be working with a Linux distro on the Raspberry Pi. Someone shared some tips for getting SDL working here if it helps -- they're using C++, but the SDL parts are the same. Lazy Foo's tutorials should help with using SDL itself.

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.

You can probably also find some good information in the RPi wiki.


Hope that's helpful! Posted Image

#7 LennyLen   Crossbones+   -  Reputation: 4022

Like
0Likes
Like

Posted 01 November 2012 - 07:31 AM

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.


There aren't quite as many, no, which is a shame. There are a few gems out there though. Unfortunately, most of the good ones I could think of were for Allegro 4, which is a bit outdated now. There was a thread start here on GDNet about an Allegro Tutorial series though, which looks promising: http://www.gamedev.net/topic/633675-great-tutorial-for-those-who-want-to-make-a-2d-game/

#8 AMenard   Members   -  Reputation: 175

Like
0Likes
Like

Posted 01 November 2012 - 12:14 PM

Unless you do something unusual you'll be working with a Linux distro on the Raspberry Pi. Someone shared some tips for getting SDL working here if it helps -- they're using C++, but the SDL parts are the same. Lazy Foo's tutorials should help with using SDL itself.

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.

You can probably also find some good information in the RPi wiki.


Hope that's helpful! Posted Image


You can find a great video tutorial on Allegro here.
My blogs:

http://www.osrebel.com <-- En Français
L'information libre et la joie d'apprendre

http://www.osrebel.com/english <-- English Version
Free information and the joy of learning

#9 achild   Crossbones+   -  Reputation: 1941

Like
0Likes
Like

Posted 01 November 2012 - 12:24 PM

Another suggestion is Allegro. It's similar to SDL, but gets updated more frequently and has a (IMO) more supportive community.

(Wow, I can remember using Allegro "1" back in its DJGPP days)

If you decide to use SDL, it's worth nothing SDL 2.0 gets updated almost daily if you get it from the repository.

#10 AMenard   Members   -  Reputation: 175

Like
0Likes
Like

Posted 01 November 2012 - 06:17 PM


Another suggestion is Allegro. It's similar to SDL, but gets updated more frequently and has a (IMO) more supportive community.

(Wow, I can remember using Allegro "1" back in its DJGPP days)

If you decide to use SDL, it's worth nothing SDL 2.0 gets updated almost daily if you get it from the repository.


Hey, I started with DJGPP too... and with RHIDE (Old Borland text GUI IDE clone) for an IDE Posted Image
Those were the days...
My blogs:

http://www.osrebel.com <-- En Français
L'information libre et la joie d'apprendre

http://www.osrebel.com/english <-- English Version
Free information and the joy of learning




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS