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:

    Joe ... you remember I said you wouldn’t be cheated?... Nobody is really. Eventually all things work out. There’s a design in everything.
    Sidney Buchman (1902–1975)

    Teaching is the perpetual end and office of all things. Teaching, instruction is the main design that shines through the sky and earth.
    Ralph Waldo Emerson (1803–1882)

    For I choose that my remembrances of him should be pleasing, affecting, religious. I will love him as a glorified friend, after the free way of friendship, and not pay him a stiff sign of respect, as men do to those whom they fear. A passage read from his discourses, a moving provocation to works like his, any act or meeting which tends to awaken a pure thought, a flow of love, an original design of virtue, I call a worthy, a true commemoration.
    Ralph Waldo Emerson (1803–1882)