Design
SDL itself is very simple; it merely acts as a thin, cross-platform wrapper, providing support for 2D pixel operations, sound, file access, event handling, timing, threading, and more. It is often used to complement OpenGL by setting up the graphical output and providing mouse and keyboard input, which are beyond the scope of OpenGL.
The library is divided into several subsystems, namely the video (handles both surface functions and OpenGL), audio, CD-ROM, joystick, and timer subsystems. Besides this basic, low-level support, there also are a few separate official libraries that provide some more functions. These comprise the "standard library", and are provided on the official website and included in the official documentation:
- SDL_image — support for multiple image formats
- SDL_mixer — complex audio functions, mainly for sound mixing
- SDL_net — networking support
- SDL_ttf — TrueType font rendering support
- SDL_rtf — simple Rich Text Format rendering
Other, non-standard libraries also exist. For example: SDL_Collide on Sourceforge created by Amir Taaki.
The SDL library has language bindings for many programming languages, from the popular (C, C++, Pascal, Perl, Python (via Pygame), etc.) to the less known languages such as Ch (via ChSDL), Euphoria and Pliant. This, and it being open-source and licensed under the LGPL, makes SDL a common choice for many multimedia applications.
Read more about this topic: Simple DirectMedia Layer
Famous quotes containing the word design:
“We find that Good and Evil happen alike to all Men on this Side of the Grave; and as the principle Design of Tragedy is to raise Commiseration and Terror in the Minds of the Audience, we shall defeat this great End, if we always make Virtue and Innocence happy and successful.”
—Joseph Addison (16721719)
“Nowadays the host does not admit you to his hearth, but has got the mason to build one for yourself somewhere in his alley, and hospitality is the art of keeping you at the greatest distance. There is as much secrecy about the cooking as if he had a design to poison you.”
—Henry David Thoreau (18171862)
“You can make as good a design out of an American turkey as a Japanese out of his native stork.”
—For the State of Illinois, U.S. public relief program (1935-1943)