derelict-allegro5 1.0.2

A dynamic binding to the Allegro 5 libraries.


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

Manual usage
Put the following dependency into your project's dependences section:

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.

Authors:
  • Mike Parker
Dependencies:
derelict-util
Versions:
1.0.2 2016-Oct-04
1.0.1 2016-Jun-01
1.0.0 2016-May-31
0.0.8 2016-May-29
0.0.7 2016-May-06
Show all 15 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.4
Short URL:
derelict-allegro5.dub.pm