Simple DirectMedia Layer - Design

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:

    With wonderful art he grinds into paint for his picture all his moods and experiences, so that all his forces may be brought to the encounter. Apparently writing without a particular design or responsibility, setting down his soliloquies from time to time, taking advantage of all his humors, when at length the hour comes to declare himself, he puts down in plain English, without quotation marks, what he, Thomas Carlyle, is ready to defend in the face of the world.
    Henry David Thoreau (1817–1862)

    What but design of darkness to appall?—
    If design govern in a thing so small.
    Robert Frost (1874–1963)

    The reason American cars don’t sell anymore is that they have forgotten how to design the American Dream. What does it matter if you buy a car today or six months from now, because cars are not beautiful. That’s why the American auto industry is in trouble: no design, no desire.
    Karl Lagerfeld (b. 1938)