Jump to content
  • Advertisement
Sign in to follow this  
DontTakeEmOff316

getting started with sdl...

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

Hi everyone, I've been looking to get into gamedev and I keep having trouble deciding home to move forward with 2d game development. I've set up and used SDL before, and my only real question is when doing 2d development should I use SDLs native rendering calls or should I use SDL and set up a openGL window and use openGL for my graphics.

Are SDL graphic calls sufficient and fast enough? I really have no idea.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
SDL is probably sufficient for any sort of basic game you would want to make. But I believe that it is not hardware accelerated unless you use openGL for the rendering. OpenGL however is more difficult to use. You may want to check out SFML http://www.sfml-dev.org/. I am using for a 2d game now and it is working great. I switched to it from SDL because I needed sprite rotation that was available in SFML but not SDL. SFML graphics is basically a 2d wrapper for openGL so you get the power of openGL without all the work.

Share this post


Link to post
Share on other sites
I was under the impression that SDL used OpenGL under the hood, and functions more or less as a wrapper for OpenGL. Wrappers tend to restrict functionality in favor of simplicity, but that is unlikely to be s concern for you at this point.

Assuming you're coding in C++, I'd also second the recommendation to consider SFML over SDL.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!