资料收集站

SDL

Wednesday
Dec 03rd
Text size
  • Increase font size
  • Default font size
  • Decrease font size

Roger's SDL Tutorials

Roger's SDL Tutorials

Welcome to my SDL tutorials. The content here is:

  • Stuff I taught myself the hard way
  • Information I thought was useful, but was scattered across mailing lists/newsgroups/web boards
  • Stuff I kept saying to myself "I should write a tutorial about that sometime"

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. :)

    Includes:
  • Making music
  • Making noise
  • Mixing it all together

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.

    Includes:
  • Basic RWops
  • Useful RWops stuff with zlib
  • Very useful RWops stuff with zziplib

Last updated September 3, 2001 by Roger Ostrander ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it )
Comments (0)Add Comment

Write comment

busy
Last Updated ( Monday, 10 October 2005 05:05 )  

Google 搜索

在线用户

We have 79 guests online