SDL or...?

Hi all! I've very, very recently (3-4 days) started learning c++ and wanted to know how to make a gui game. Apparently I need to draw my sprite (easy), write the program (do-able) and here comes the hard part... Put it all into a window and make it move! Lol okay, basically I've read that it's best to use either Allegro, SDL or SFML. I've tried installing SDL 2.0.3 and have looked up countless tutorials here and there, but there are literally no tutorials on the 2.0.3 version. Like, all the commands and stuff are different. For a noob like me, having all commands changed like that is so confusing! I can't even create a window! So what do you guys think? Should I go crazy and keep trying SDL 2.0.3, use an older version like 2.0 or 1.2, or try Allegro/SFML? Which one is easier to start off with? Like which one has more tutorials and stuff? Thanks! :)

Link to SDL2 tutorials http://lazyfoo.net/tutorials/SDL/index.php

(SDL 2.0.3 is the same as SDL 2.0, it just has internal bug fixes).

Pretty much anything learned from SDL 1.2 is almost directly compatible with 2.0, SDL2 only changed necessary things.
Also, I'd advice to learn C++ better first, then head to GUI... But with tutorials it's basically copy-paste anyway.
Last edited on
When you see SDL 2.0 it means any version SDL 2.0.x. The first version of SDL 2.0 was actually SDL 2.0.0.
Then how come the commands to create a window don't work? The ones in the youtube videos I'm watching. It says SDL 2 in the video title... Like a comment said that it's because the new SDL version removed that command or something Idk ._.
Last edited on
What does allegro has to do with SDL?
closed account (N36fSL3A)
Lazyfoo's SDL2 tutorials > any other SDL2 tutorials
What does allegro has to do with SDL?


OOPS I corrected it.
Kiddolioable wrote:
Then how come the commands to create a window don't work? The ones in the youtube videos I'm watching. It says SDL 2 in the video title... Like a comment said that it's because the new SDL version removed that command or something Idk ._.
That's why I told you to use lazyfoo's tutorials. The others are pretty much crap atm. (No offense to SDL2 tutorial writers)
They're good (lazyfoo's) but I lack the knowledge of C++ to do it. Back to my book :) Solved, ty!!
Topic archived. No new replies allowed.