Skip to content
A dynamic binding to the Allegro 5 library for the D Programming Language.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A dynamic binding to version 5.2 of the Allegro library and its associated addons for the D Programming Language.

Please see the pages Building and Linking Derelict and Using Derelict, in the Derelict documentation, for information on how to build DerelictAllegro5 and load the Allegro 5 libraries at run time. In the meantime, here's some sample code.

// For the core Allegro library
import derelict.allegro5.allegro;

// Add additional imports for each addon package intended to be used
import derelict.allegro5.image;         // For the Image addon
import derelict.allegro5.font;          // For the Font addon
import derelict.allegro5.primitives;    // For the Primitives addon
// etc...

// Alternatively, import core Allegro and all addons
import derelict.allegro5;

void main() {
    // Load the core Allegro library.

    // Now Allegro5 functions can be called.

    // Any addons can be loaded as needed.
    // etc...

This binding is a bit different from most other Derelict packages, especially when building on Mac OSX. Please refer to this blog post about DerelictAllegro5 at The One With D for more information until the Derelict documentation is complete.

You can’t perform that action at this time.