Description

A dynamic binding to the Allegro 5 libraries.

Package Information

Version1.0.2 (2016-Oct-04)
Homepage https://github.com/DerelictOrg/DerelictAllegro5
Repository https://github.com/DerelictOrg/DerelictAllegro5
LicenseBoost
AuthorsMike Parker
Registered byMike Parker
Dependencies

derelict-util

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

DerelictAllegro5

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.
    DerelictAllegro5.load();

    // Now Allegro5 functions can be called.
    ...

    // Any addons can be loaded as needed.
    DerelictAllegro5Image.load();
    DerelictAllegro5Font.load();
    DerelictAllegro5Primitives.load();
    // 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.

Available versions

1.0.2 1.0.1 1.0.0 0.0.8 0.0.7 0.0.6 0.0.5 0.0.4 0.0.3 0.0.2 0.0.1 ~master ~DA5-2.0 ~5.2 ~5.0