# SDL

> Simple DirectMedia Layer: cross-platform C library for windows, input, audio and graphics

Source: https://talira.ai/catalog/sdl-twb60hjt
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / multimedia](https://talira.ai/categories/libraries/multimedia), [gaming / game engines](https://talira.ai/categories/gaming/game-engines)
- Platforms: windows, macos, linux, ios, android[^1]
- Licence: Zlib[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Simple DirectMedia Layer project](https://talira.ai/orgs/libsdl-org.md)

SDL (Simple DirectMedia Layer) is a cross-platform development library written in C that gives low-level access to audio, keyboard, mouse, joystick and graphics hardware via OpenGL and Direct3D. It officially supports Windows, macOS, Linux, iOS and Android, works natively with C++, and has bindings for several other languages, including C# and Python. Video playback software, emulators and many games are built on it, including Valve's catalog. It is distributed under the zlib license, so it can be used freely in any software.

## Links

- Website: https://www.libsdl.org/
- GitHub: https://github.com/libsdl-org/SDL
- Docs: https://wiki.libsdl.org/

## Problems it solves

- I'm writing a game in C or C++ and need one API for windows, input and sound on Windows, macOS and Linux
- I need gamepad and joystick input that works the same across platforms
- We're porting an emulator and want a thin layer over the OS for video, audio and controllers

## Features

- Window creation and graphics access via OpenGL and Direct3D
- Keyboard, mouse and joystick input
- Cross-platform audio
- Official support for Windows, macOS, Linux, iOS and Android
- Bindings for other languages, including C# and Python
- sdl2-compat, a binary- and source-compatible SDL2 layer that runs existing SDL2 programs on SDL3

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.85, momentum 0.72, community 1.00, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 685 commits in the last 90 days
- latest release release-3.4.20 26 days ago
- 17.1k GitHub stars
- 1016 contributors
- backed by Simple DirectMedia Layer project

## Alternatives

- [SFML](https://talira.ai/catalog/sfml-bmj0aep5.md): Simple and Fast Multimedia Library: a cross-platform C++ API for windowing, graphics, audio and networking
- [GLFW](https://talira.ai/catalog/glfw-18gjv7t0.md): A multi-platform library for OpenGL, OpenGL ES and Vulkan windows, contexts and input

## Sources

[^1]: https://www.libsdl.org/ (checked 25 Nov 2026)
[^2]: https://github.com/libsdl-org/SDL/blob/main/LICENSE.txt (checked 25 Nov 2026)
