SDL

closed account (N36fSL3A)
Hello! I was just searching Google looking for a good SDL (Simple Direct Media Library) tutorial. I know that there is Lazy Foo, but I don't think that those tutorials are for me. I think they are just... not as informative/easy to understand as I'd like them to be. Anyway, post some links below and/or tell me how YOU learn't SDL please. Thank you ahead of time!
You can look at http://www.sdltutorials.com/sdl-tutorial-basics and also read the comment section on that page. A good start... depending on what you want to accomplish.

To view other tutorials from sdltutorials, hoover the "tutorials" meny.
closed account (N36fSL3A)
Alright, I saw this, I read a couple maybe 4 weeks ago and it just didn't get in my head. Do you recommend that I just read from where I continued, or look for another tutorial? If yes, what tutorial?
Last edited on by Fredbill30
I'd say the tutorials I found on sdltutorials.com is sufficient to learn how to use SDL and in the same time learn how to build simple games.

Just play around with it and you will learn how it works. If it breaks, build a new one =)

And don't copy'n'paste, then you'll never learn... ;)
Have you tried SFML? I tried learning SDL before, but found SFML much easier.
I found Lazy Foo's tutorials very useful when I learned SDL.

Looking things up in the documentation pages can also be very useful if you know approximately what you're looking for. http://www.libsdl.org/cgi/docwiki.cgi/SDL_API

Sometimes I look into the SDL source code to find information that is not listed in the documentation. This is probably not to recommend until you got a good hang of it.

I know that there is Lazy Foo, but I don't think that those tutorials are for me. I think they are just... not as informative/easy to understand as I'd like them to be.

What is it that is hard to understand? Do you understand the C++ that is being used? I think they assume the reader already know C++ so if that is the problem maybe you should focus on learning some more C++ instead, or you can always look it up if you don't understand something. You can look up C++ stuff on this site, from a book or search the web for information. For informations about SDL functions use the SDL documentation pages http://www.libsdl.org/cgi/docwiki.cgi/SDL_API

lazyfoo.net vs. sdltutorials.com
I like sdltutorials.com because it sometimes holds contests and it has a forum.
I didn't learn SDL from sdltutorials.com but I have read some parts of their tutorials anyway. What I have noticed is that sdltutorials.com feels more like C++ than lazyfoo.net. lazyfoo.net uses C++ but it is very simple and it sometimes feel more like a C approach. I think the simplicity of lazyfoo.net can be an advantage because it allows you to focus on learning SDL without having to know or care about more complex topics of OOP/C++/etc.
Last edited on
closed account (N36fSL3A)
No, its not that I dont understand the C++, I consider myself intermediate. I just think its a lot less... well organized. I don't like having most code in one file. Also every now and then I look into Lazy Foo's tutorials, but they arent getting to me.

@Zephilinox
I don't want to use SFML, I looked at it for a little, but I like SDL better.
Last edited on by Fredbill30
Topic archived. No new replies allowed.