Jump to content
  • Advertisement
Sign in to follow this  
cppdungeon

2d graphics for c++

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
You need to use a graphics library. Popular choices for doing 2D graphics include Allegro or SDL.

Share this post


Link to post
Share on other sites
The best way to go about displaying graphics in C++ is to use one of the graphics libraries available on the net. The two most common 2d libraries used here are SDL and Allegro. Either of these libraries will allow you to quickly and easilly start drawing 2d images to the screen, as well as providing you with the functionallity you need for many other systems in a game. They both are relatively easy to learn and many tutorials exist for them. Just pick one and go with it.

Share this post


Link to post
Share on other sites
I use Allegro and I like it alot. If you're a book person, pick up Game Programming All In One, 2nd Edition by Jonathan S. Harbour. It is entirely on programming in Allegro and has the libraries on a CD, which to me is somewhat easier than downloading a bunch of abstract stuff from a website if you don't know what you're looking for exactly.

Share this post


Link to post
Share on other sites
Quite frankly, ID3DXSprite is a GodSend. I'm very satisfied with it. I use it for everything 2D, and it's braindead easy to use. Sprites, particles, whatever, and I've had no performance issues yet. I can't say much about Allegro or SDL because I haven't used them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!