Simple DirectMedia Layer: Table Of Contents

[Next] # Table Of Contents: Author Introduction Simple DirectMedia Layer What is it? SDL is a free cross-platform multi-media development API Used for games Used for game SDKs Used for emulators Used for demos Used for multimedia applications What can it do? Video Events Audio CD-ROM audio Threads Timers Endian independence What platforms does it run on? Linux Win32 BeOS Unofficial ports, ports in progress Using the Simple DirectMedia Layer API Initializing the library Video Choosing and setting video modes (the easy way) Drawing pixels on the screen Loading and displaying images Events Waiting for events Polling for events Polling event state Sound Opening the audio device Loading and playing sounds CD-ROM audio Opening a CD-ROM drive for use Playing the CD-ROM Threads Create a simple thread Synchronizing access to a resource Timers Get the current time, in milliseconds Wait a specified number of milliseconds Endian independence Determine the endianness of the current system Swap data on systems of differing endianness [Next]