Skip to content
A minimal host for sdl2 based reflex apps.
Haskell
Branch: master
Clone or download
Pull request Compare This branch is 9 commits behind schell:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
src/Reflex
.gitignore
.travis.yml
LICENSE
README.md
Setup.hs
reflex-sdl2.cabal
stack.yaml

README.md

reflex-sdl2

This is a reflex host for sdl2.

Writing and running sdl2 apps requires version 2 of the awesome SDL library.

building

The first step is to install SDL.

macOS

Using homebrew...

brew install sdl2

Ubuntu / Debian

The sdl2 bindings require SDL >= 2.0.4, or for special instructions to be followed. Assuming you're on Ubuntu >= 16.04, you can run

apt-get install libsdl2-dev

otherwise please visit the org page above and install via their README.

building with stack

After installing SDL, we can build with stack.

Using stack is the path of least resistance.

stack build

examples

After building you can view an example using the built-in 2d renderer in app/Main.hs.

To run the example do:

stack exec reflex-sdl2-exe
You can’t perform that action at this time.