Add Cai to authors, copyright lists
Siniša Biđin authored
cc8d166e

sdl2-image

Build Status

Haskell bindings to SDL2_image

Both the raw and the higher level bindings should allow you to use any aspect of the original SDL2_image library. Please report an issue if you encounter a bug or feel that something is missing.

Install

This library depends on the new API version of haskell-game/sdl2, available on Hackage as sdl2 version 2.0.0 or greater. With that in mind, you can install sdl2-image from source like this:

git clone git@github.com:sbidin/sdl2-image.git
cd sdl2-image
cabal install

Note that you might get compile errors if you're not using the latest GHC. Only 7.10 is currently tested.

Documentation

You can find the documentation here.

The original SDL2_image documentation can also help, as the bindings are close to a direct mapping.

Example

A small example executable is included with the library. It loads and displays a given image. You can find it in the example directory.

cd sdl2-image
cabal run path/to/some/image.type