SDL School

API reference

This reference covers the SDL3 functions that the lessons use. Each page has the real declaration, a description of each parameter, and code from a working program. Each page also tells you the SDL2 name, and it links to the lesson that runs the code and to a download of the full program.

SDL has more than 1,200 functions. For the rest, read the official SDL documentation.

Application

Functions that start a program, run it, and end it.

Windows and drawing

Functions that open a window and draw on it.

Images and textures

Functions that load images and draw them.

Input and time

Functions that read the keyboard, test positions, and measure time.

Audio

Functions that load sound and send it to the speakers.

Files, memory, and strings

Functions that load files, manage memory, and work with text.

Math

Small math functions and macros.

Text with SDL_ttf

Functions from the separate SDL_ttf library, which draws text from a font file.