SDL
Simple DirectMedia Layer
Cross-platform C library that abstracts graphics, audio, and input so the same game or emulator code runs on Windows, macOS, Linux, and more.
Simple DirectMedia Layer (SDL) is a cross-platform library written in C that makes it easier to write multimedia software such as games and emulators. Cross-platform means the same code can run on multiple operating systems, like Windows, macOS, and Linux, without being rewritten for each one. SDL handles the low-level details of drawing graphics, playing audio, and reading input from keyboards, mice, and controllers, so developers can focus on the game or application logic itself. It is distributed under the zlib license, which allows free use in both open-source and commercial projects. The README does not provide further detail beyond pointing to the official website at libsdl.org for releases and additional information.
Where it fits
- Write a 2D game in C or C++ that ships on Windows macOS and Linux from one codebase
- Build the windowing and input layer for a console emulator
- Add gamepad support to an existing OpenGL or Vulkan renderer
- Port a 90s era multimedia app to modern operating systems