Skip to content

DerelictOrg/DerelictAllegro5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A dynamic binding to the Allegro 5 library for the D Programming Language.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages