allegro

Allegro 5.0 bindings for Chicken.

Author

Dan Leslie (dan@ironoxide.ca)

Subpages

The allegro docs are divided up into pages by category.

Repository

The main repository can be found on GitHub.

Supported Versions

Allegro versions 5.0.x up to 5.0.6 are supported. All 5.0.x versions should work, but features added post-5.0.6 will not be available.

Future version support will likely be added in the future. Patches are welcome!

Examples

A growing number of examples can be found on GitHub.

Please contribute!

Windows Extras

Since building all your packages on windows is a bit of a pain in the ass I've written the Egg with the assumption that you're using the pre-built Allegro libraries. The only extra step you'll need to do, after installing the prebuilt Allegro bins to your MingW32 directory should be:

# cd /MingW/lib # cp liballegro-INSTALLED_VERSION-monolith-md.a liballegro.a

Assuming, of course, that you've installed MingW32 to C:\Mingw

Naming Key

In general, the naming is fairly indicative of the function's behaviour.

The gist is something like this:

make-type Constructs a type (Not always available) make-type* Constructs a type, returning a value which must be manually destructed free-type! Manually destructs a type (Not available for internally managed types) type-noun Accessor for value "noun" on a specific type type-noun-set! Mutator for value "noun" on a specific type type-verb Method which requires a specific type to operate type-verb! Method which modifies an object of a specific type verbage Function which operates on the global state verbage* Function which operates on the global state, but also returns a value which must be manually destructed

If a function begins with a type name then you can be assured that the first parameter will be an object of that specific type.

License

Copyright 2012-2019 Daniel J. Leslie. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are

permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY DANIEL J. LESLIE ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DANIEL J. LESLIE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.