Simple Direct Media Layer (SDL)
Simple Direct Media Layer (SDL)
Logo
Developer(s) Sam Lantinga
Written in C
Type API
Simple DirectMedia Layer (SDL) is a cross-platform, free and open source software multimedia library written in
C that presents a simple interface to various platforms' graphics, sound, and input devices. Software developers use it
to write computer games or other multimedia applications that can run on many operating systems including
Windows, Mac OS X, OS 9, Linux, the PSP, Google Android, AmigaOS, AmigaOS 4, Haiku/BeOS, MorphOS,
OpenVMS, Syllable, and WebOS. It manages video, events, digital audio, CD-ROM, sound, threads, shared object
loading, networking and timers.[1]
History
Sam Lantinga created the library, first releasing it in early 1998, while
working for Loki Software. He got the idea while porting a Windows
application to Macintosh. He then used SDL to port Doom to BeOS
(see Doom source ports). Several other free libraries were developed to
work alongside SDL, such as SMPEG and OpenAL. He also founded
Galaxy Gameworks [2] in 2008 to help commercially support SDL.[3]
SDL 1.3
SDL 1.3 is a major update to the SDL 1.2 codebase. It replaces several parts of the 1.2 API with more general
support for multiple input and output options. Some feature additions include multiple window support, multiple
input device support (many mice, many keyboards, etc.), hardware-accelerated 2D graphics, and better Unicode
support.[4]
SDL 1.3 also introduces a new licensing option, whereby one can obtain a commercial license to allow closed-source
static linking. This opens up possibilities for distribution on platforms that do not allow dynamic linking.
Architecture
SDL has the word "layer" in its title because it is
actually a wrapper around operating-system-specific
functionality. The chief purpose of SDL is to provide a
common framework for accessing this functionality.
Because of the way SDL is designed, a lot of the source
code is split into separate modules for each operating
system, in order to make calls to the underlying system.
When SDL is compiled, the correct modules are
selected for the target system. Abstraction layers of several SDL platforms.
On Microsoft Windows, SDL uses a GDI backend by
default. A DirectX backend is also available. Older versions of SDL used DirectX 5, but SDL 1.2 (the current stable
release) requires DirectX 7 by default. Sam Lantinga has stated that he plans to use DirectX 8 in future SDL
releases.[5]
On X11 platforms, including Linux and OpenVMS, SDL uses Xlib to communicate with the X11 system for
graphics and events.
On Mac OS X, SDL uses Quartz.
Gallery
Extensions
libsdl.org Library List [10]
• Guichan [11], ParaGUI [12], SdlWidgets [13], Agar [14], SDLTk [15], SAGGUI [16] - Widget sets
• glSDL [17] - OpenGL backend for SDL (hardware accelerated blits, scaling, and rotation)
• SDL OpenVMS [18] - libSDL library set for OpenVMS port by Alexey Chupahin.
• SMPEG [19] - Video playback
• SDL_ffmpeg [20] - Audio / Video - Encoding and Decoding
• SDL_gfx [21], SPriG [22], SGE [23], SAgl [24] - Graphics primitives rendering and other effects
• libcrtxy [25] - Vector graphics
• Audiality [26] - Audio engine
• FastEvents [27] - Enhanced event processing
• Net2 [28] - SDL_Event-based networking
• SFont [29], BFont, DFont, NFont [30] - Bitmap font rendering
• PolyFonts [31] - TTF rendering
• Crank Storyboard Suite [32] - User Interface Builder
• SDL Collide - Collision detection
References
[1] "SDL official website" (http:/ / www. libsdl. org). Libsdl.org. . Retrieved 2010-03-19.
[2] http:/ / www. galaxygameworks. com/
[3] About Galaxy Gameworks (http:/ / www. galaxygameworks. com/ about. html)
[4] "SDL: A Quick Introduction to SDL 1.3" (http:/ / www. thegrumpyprogrammer. com/ node/ 13). The Grumpy Programmer (http:/ / www.
thegrumpyprogrammer. com). 29 June 2009. . Retrieved 7 February 2010.
[5] "SDL mailing list" (http:/ / lists. libsdl. org/ pipermail/ sdl-libsdl. org/ 2000-December/ 013908. html). Libsdl.org. . Retrieved 2010-03-23.
[6] "Development" (http:/ / www. openttd. org/ en/ development). OpenTTD. . Retrieved 2010-03-19.
[7] "CompilingWesnoth" (http:/ / wesnoth. org/ wiki/ CompilingWesnoth#Prerequisites). Wesnoth. 2010-02-27. . Retrieved 2010-03-19.
[8] "SDLClient - Freeciv.org" (http:/ / freeciv. wikia. com/ wiki/ SDLClient). Freeciv.wikia.com. . Retrieved 2010-03-19.
[9] "Oolite" (http:/ / oolite. org). Oolite.org. . Retrieved 2010-03-19.
[10] http:/ / www. libsdl. org/ libraries. php
[11] http:/ / guichan. sourceforge. net
[12] http:/ / www. nongnu. org/ paragui/
[13] http:/ / thelas. dk/ index. php/ SdlWidgets
[14] http:/ / libagar. org/
[15] http:/ / developer. berlios. de/ projects/ sdltk/
[16] http:/ / saggui. sourceforge. net/
[17] http:/ / olofson. net/ mixed. html
[18] http:/ / fafner. dyndns. org/ ~alexey/ libsdl/ public. html
[19] http:/ / www. icculus. org/ smpeg/
[20] http:/ / www. arjanhouben. nl/ SDL_ffmpeg/
[21] http:/ / www. ferzkopp. net/ joomla/ content/ view/ 19/ 14/
Simple DirectMedia Layer 4
External links
• The SDL Documentation (http://www.libsdl.org/cgi/docwiki.cgi/FrontPage)
Article Sources and Contributors 5
License
Creative Commons Attribution-Share Alike 3.0 Unported
http:/ / creativecommons. org/ licenses/ by-sa/ 3. 0/