derelict-sdl2 3.1.0-alpha.6

Dynamic bindings to SDL2, SDL2_image, SDL2_mixer, SDL2_ttf and SDL2_net.

To use this package, run the following command in your project's root directory:


NOTE: DerelictSDL2 is in bugfix-only mode. It has been superseded by the bindbc-sdl package. DerelictSDL2 will be available through the dub repository for as long as old projects depend upon it, but new projects should use bindbc-sdl.

Dynamic bindings to SDL 2 versions 2.0.0 - 2.0.6, SDL2_image, SDL2_mixer, SDL2_ttf, and SDL2_net for the D Programming Language.

Please see the DerelictSDL2 documentation and the sections on Compiling and Linking and The Derelict Loader, in the Derelict documentation, for information on how to build DerelictSDL2 and load the SDL2 libraries at run time. In the meantime, here's some sample code.

// This example shows how to import all of the DerelictSDL2 bindings. Of course,
// you only need to import the modules that correspond to the libraries you
// actually need to load.
import derelict.sdl2.sdl;
import derelict.sdl2.image;
import derelict.sdl2.mixer;
import derelict.sdl2.ttf;

void main() {
    // This example shows how to load all of the SDL2 libraries. You only need
    // to call the load methods for those libraries you actually need to load.

    // Load the SDL 2 library.

    // Load the SDL2_image library.

    // Load the SDL2_mixer library.

    // Load the SDL2_ttf library

    // Load the SDL2_net library.

    // Now SDL 2 functions for all of the SDL2 libraries can be called.
  • Mike Parker
3.1.0-alpha.6 2020-Jul-31
3.1.0-alpha.5 2020-Jul-27
3.1.0-alpha.4 2018-May-18
3.1.0-alpha.3 2017-Dec-10
3.1.0-alpha.2 2017-Sep-30
Show all 99 versions
Download Stats:
  • 5 downloads today

  • 37 downloads this week

  • 200 downloads this month

  • 101556 downloads total

Short URL: