Examples
There are two (at least) kinds of examples. There are examples that belong with the documentation of a single function. Please put those kinds of examples in the SDL_API documentation. Then there are examples that use parts of or the whole library. Please put each of those on a separate page (or group of pages) and link to them from here. Give the title of the example and a brief description on this page.
Some examples came from the SDL_Guide.
Contents
General examples
Topic examples
Video
Pixel_Access - Pixel-level access to SDL surfaces.
Resizable_Windows - Creating and using resizable windows in SDL
Audio
Audio_Examples - Opening and playing audio device.
Events
Event_Examples - Filtering and Handling Events
Time
Time_Examples - Time based game loop
SDL_Average_FPS_Measurement - A bit of code to measure how many frames per second your application runs at.
CDROM
SDL_CDROM_Listing_Example - Listing CD-ROM drives.
SDL_CDROM_Opening - Opening the default drive.
SDL_CDROM_Listing_Tracks - Listing the tracks on a CD.
SDL_CDROM_Playing_Tracks - Play an entire CD.
OpenGL in SDL
OpenGL_Full_Example - A complete example using OpenGL
OpenGL_Texture_Example - A simple example on how to load and display textures loaded using SDL with OpenGL.
Multithreaded programming
SDL_Mutex_Example - Shows how to use a SDL_mutex to make sure at most one thread executes a piece of code at the same time (a.k.a. a critical region).
