Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Phil165

2D in openGL?

This topic is 5654 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

Im slowly picking up on the game programing thing through C++ and was wondering if I should use SDL for 2D graphics, or should I just use openGL? I know openGL can do 2D, but would it be a good API for 100% 2d based projects? I will eventually use openGL for 3D only, but I wanted to do some cool 2D stuff first.

Share this post


Link to post
Share on other sites
Advertisement
Your answer would depend your development needs.

For most stuff, SDL if fine. If you plan on using lots of alpha blending, then go with OpenGL as it provides hardware accelerated functions for this. Most cards don''t have 2d alpha hardware support.

Even if you decide to use OpenGL for graphics, it would still behove you to learn SDL so that you can use it for everything else: windows, input, sound, etc.

Share this post


Link to post
Share on other sites

  • 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!