SDL Tutorials
There are a number of SDL tutorials available from different sources.
Multi-Subject
- A whole website about SDL tutorials, including SDL basics, events, animation, entities, maps and other topics
- Tutorials on building 3 complete games using SDL 2.0
C++/OpenGL/SDL Game Engine Tutorials
SDL game engine tutorials for absolute beginners, written by the lead developer of Seed of Andromeda
- A collection of video tutorials on various SDL topics
Beginning Game Programming v2.0
- A collection of detailed tutorials for game programming using SDL 2.0 with C++
- Tutorials covering a wide variety of introductory topics with SDL 2.0
- Video tutorial series on recreating Cave Story using SDL
Migrating a C++ game from SDL 1.2 to SDL 2.0 (Archived)
- An example of a project upgrade from SDL 1.2 to SDL 2.0
Setup
https://www.youtube.com/watch?v=wWGtuc5uqF4
- A video tutorial showing how to setup SDL 2.0 with codeblocks mingw32 compiler
https://www.youtube.com/watch?v=UwpZOwT9nVc
A video tutorial showing how to setup SDL 2.0 with codeblocks mingw32 compiler with OpenGL 3.0+ & compiling GLEW libraries
Android
http://www.dinomage.com/2013/01/howto-sdl-on-android/
- An example of setting up SDL on Android
Building an Android application using the SDL (Archived)
- An example of building an Android application using the SDL
Video
Streaming textures with SDL 2.0
- A quick guide to streaming textures
- A tutorial on enabling and using GLSL extensions with SDL
Check out http://hg.libsdl.org/SDL/file/default/test/testshader.c also
OpenGL
- Using SDL 2.0 beta with OpenGL 3
- Using SDL 1.3 alpha with OpenGL 3.2 Context
OpenGL ES for iPhone : A Simple Tutorial
- A brief introduction to OpenGL ES
Haptic
https://web.archive.org/web/20130728040700/http://bobbens.dyndns.org/journal/2010/sdl_haptic (Archived)
- Covers the basics of how to create and playback simple force feedback effects with SDL
Input
- Using SDL for text inputs with specific consideration for international users
Threads
Condition variables in SDL (Archived)
- A good discussion of condition variables (in computer science rather than gaming context), some mention of mutex and semaphore use
libSDL2pp
https://github.com/libSDL2pp/libSDL2pp-tutorial
- Tutorial for libSDL2pp, C++11 bindings/wrapper for SDL2