Cross-platform library for portable low level I/O access
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. As one of several open source projects supported by now defunct Loki Software it is the most successful library for games and has been used for hundreds of free and almost all commercial games for Linux.
Simple DirectMedia Layer supports the operating systems BeOS, *BSD*, IRIX, Linux, Mac OS, Mac OS X, QNX, Solaris, Windows and has unofficial support for AIX, Atari, Dreamcast, Nintendo DS, OS/2, RISC OS, SymbianOS, Tru64 with older versions also supporting AmigaOS and EPOC.
SDL is written in C, but works with C++ natively, and has bindings to many other languages, including Ada, C#, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby and Smalltalk.
License: free
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | yes | no | yes | yes |
- Simple DirectMedia Layer home page
- Download Simple DirectMedia Layer
- Extensive list of games using SDL
Submitted by Wormo on 1999-04-07.

I've begun re-releasing all of my old kinda-crappy games and giving them some much-needed updates, thanks to SDL.
Sam rules!
All I need now, is a library of less generic graphical functions, which I'll probably start working on ASAP.
Oh, and perhaps I should make some C++ wrappers. Gosh, the project is perfect in my eyes, and I can already find nits to pick :P
(Download! Loki Software did ;)
Why don't game developpers switch to SDL/OpenGL? It would bring peace to the OS world :P. No really, it would be alot easyer to get games working on multiple platforms if gamedeveloppers would use that combination.
They can't say "no" because of performance - they could adjust the source to their needs!
Anyways, my only wish is an official .NET wrapper.
No, really, before SDL, you would see one or two games which looked really polished (XBlast anyone?). Now everyone and her dog can make a 2D game which will look just like a professional title of the 90s (given a good gfx wizard and gimp).
I think that a good game does not need 3D graphics, so I am very happy with the state of the linux game development art, and that happens to be (IMHO) SDL.
1. Ensure that hardware acceleration was used in Linux - by default SDL games use the x11 driver in Linux, which is not accelerated
2. Make it possible to combine alt-tabbing in fullscreen mode with hardware acceleration, which seems a bit difficult with SDL
3. Allow SDL to include an API to do very easy and fast scaling and rotating
4. Allow the drawing of circles, lines and other geometric shapes, which is currently possible with SDL_gfx but SDL_gfx doesn't work with glSDL 5. Allow the possibility of something like an addon SDL_fx library which could include pretty OpenGL fire effects, water effects, etc
On that page in mentions that there may be a GL backend for SDL in the works too. Lets hope?
:]
SDL_GL_LoadLibrary() will load the system default OpenGL library if it is passed NULL as a parameter.
Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications.
Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
Also, it would be great to see SDL_Image support saving in all formats as well as loading. I know that Wesnoth would like to be able to save screenshots as PNG. Thanks.
source: http://lists.libsdl.org/htdig.cgi/sdl-libsdl.org/2006-July/056710.html
While I understand the rationale for such a move, I also understand why some fans of software freedom may disappointed. I can see both sides of it.
I'm really glad SDL exists and works well for a lot of graphical software.
I'm not sure if you're making that implication, but just to get this out of the way: you can sell free software. In that sense "commercial licence" is a void statement, because LGPL is itself a commercial licence. But apparently there's sufficient demand for alternative licensing conditions that wouldn't require you to do some or all of the things that the LGPL does, and people are willing to pay for it.
Yes. The GPL (and the LGPL) are about freedom. Commercial licenses are not about freedom. I don't see your point.
I support their efforts to find financial support for SDL development! I do not support this muddying of terms!
Oh... that & DOSBox. (-: