@hackage reflex-sdl20.1.0.0

SDL2 and reflex FRP

reflex-sdl2

This is a very minimal host for running reflex apps using sdl2.

installation

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

macOS

Using homebrew...

brew install sdl2

Ubuntu

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

This project uses stack for building. From the project directory:

stack build

examples

You can view an example using the built-in 2d renderer in app/Main.hs. To run the example do:

stack build
stack exec reflex-sdl2-exe
  • Installation

  • Dependencies (0)

  • Dependents (0)