Roger's SDL Tutorials

Welcome to my SDL tutorials. The content here is:

Keep in mind that this isn't (at least right now) a "Teach yourself SDL" webpage. For now it's just specific items that have come to mind and that I've written up. If I have the time, however, I may put together a comprehensive tutorial at some point in the future.

Also keep in mind that I'm an amateur SDL programmer. If you see an obvious mistake, it's probably exactly that. Let me know about it, so I can get better and therefore make better tutorials.

In addition, the instructions on how to compile are linux-based. This is because I'm in Linux when writing these tutorials, and I don't have a lot of experience with SDL on other operating systems. If you're trying these examples on another OS, you may have to change a few things. Likewise, I only have an i386 machine here to play with, so if anyone out there spots things that could become a problem on other architectures, be sure to tell me.


SDL_Mixer: From the SDL_mixer page: "SDL_mixer is a sample multi-channel audio mixer library. It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries." It's an excellent library, but the only documentation is in the header files and the sample programs. In other words, it's the kind of library I write tutorials for. :)


SDL_RWops: Something add-on libraries seem to like to do a whole lot is to take a filename, and give you a pointer to where they've loaded something into memory. Which was incredibly non-useful to me, since I couldn't figure out how to get from that pointer to an SDL_Surface. That's what the RWops were made for.


Return

Last updated September 3, 2001 by Roger Ostrander (denor@yahoo.com)