sdl2 travis-ci

Haskell bindings to the SDL2 library

2 years after

Building

Build Status

If you don't have SDL 2.0.2 or higher on your system via your package manager, you can install it from the official SDL site.

On Ubuntu you can install from source with a simple

./configure && make -j4 && sudo make install

On OSX you can install SDL with homebrew. pkg-config is also recommended.

brew install sdl2 pkg-config

On Windows you can install SDL with pacman under MSYS2 (or use stack's embedded MSYS2).

pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2

Contributing

We need your help! The SDL API is fairly large, and the more hands we have, the quicker we can reach full coverage and release this to Hackage. There are a few ways you can help:

  1. Browse http://wiki.libsdl.org/CategoryAPI and find functions that aren't exposed in the high-level bindings.

  2. The above can be somewhat laborious - an easier way to find out what's missing is to write code.

    Both of these would be useful if they were translated to Haskell, and we'd be happy to store this code in this repository.

  3. Documentation is welcome, but may not be the best use of your time as we are currently in a period of rapid development as we find the most productive API.

Development

Using cabal repl

You can use cabal repl as a development tool, but you'll need to configure the project in a slightly non-standard way first:

cabal configure --ghc-option=-fPIC

You only need to do this once (unless you reconfigure). From this point, cabal repl should Just Work.

Related Repositories

go-sdl2

go-sdl2

SDL2 binding for Go ...

rust-sdl2

rust-sdl2

SDL2 bindings for Rust ...

SDL2-CS

SDL2-CS

SDL2# - C# Wrapper for SDL2 ...

cl-sdl2

cl-sdl2

Common Lisp bindings for SDL2 using C2FFI. ...

haskell-sdl2-examples

haskell-sdl2-examples

SDL2 tutorial code in Haskell ...


Top Contributors

ocharles polarina afwlehmann tejon tempname11 Mokosha ekmett cloudhead chrisdone alpmestan Velro Noeda Purlox svenkeidel dalaing DevJac klao nek0 BrianMcKeever simonmichael corngood ak3n southp jdeseno deepfire lukexi nkpart quyse schell sdroege

Releases

-   v2.1.3 zip tar
-   v2.1.1 zip tar
-   v2.1.0 zip tar
-   v2.0.0 zip tar
-   v1.3.1 zip tar
-   v1.3.0 zip tar
-   v1.2.0 zip tar
-   v1.1.3 zip tar
-   v1.1.2 zip tar
-   v1.1.1 zip tar
-   v1.1.0 zip tar
-   v1.0.2 zip tar
-   v1.0.1 zip tar
-   v1.0.0 zip tar