Jump to content
  • Advertisement
Sign in to follow this  
BitMan

What is the best way to learn SDL

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

Hello! I have been using C++ for quite some time and decided it was time I should attempt to develop a simple 2D game. After reviewing the libraries that seem popular for C++ game development I decided to use SDL(Simple DirectMedia Layer). After setting up the library I was quickly discouraged by the fact that there is a lack of tutorials for learning the library. I was wondering if anybody could tell me how I should go about learning this library. 

Share this post


Link to post
Share on other sites
Advertisement

http://lazyfoo.net/tutorials/SDL/ or http://twinklebeardev.blogspot.com/p/sdl-20-tutorial-index.html work for learning SDL2. If you run into trouble with those, just explain what specific issues you're having and I'm pretty sure quite a few of us out here are using SDL2 and can try to help out.

 

Edit: Second URL didn't automagically become a link, so I forced it!

Edited by richardurich

Share this post


Link to post
Share on other sites

In my eyes the best way is next to normal tutorials to write a wrapper around sdl. The reason is simple you will come in touch with every function you build an wrapper around, you have to ask yourself what the specific function does and learning on this way that a specific functions exist.

I did it this way and i learned relativ quick how to use it

Edited by exOfde

Share this post


Link to post
Share on other sites

Hello! I have been using C++ for quite some time and decided it was time I should attempt to develop a simple 2D game. After reviewing the libraries that seem popular for C++ game development I decided to use SDL(Simple DirectMedia Layer). After setting up the library I was quickly discouraged by the fact that there is a lack of tutorials for learning the library. I was wondering if anybody could tell me how I should go about learning this library. 

I'm currently working through this book that walks you through making two 2D games - I've found a few problems, e.g. forgetting to mention that a member variable should be included in the constructor initializer list, and using a member function that was not defined (a simple one-liner, but still), but so far I like it.

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!