Update raw helper.
sbidin authored
6c889be3

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 and is meant to be used with the new-api branch of haskell-game/sdl2. After installing haskell-game/sdl2, you can install sdl2-image manually from source:

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