reflex-sdl2: SDL2 and reflex FRP

[ game, library, mit, program ] [ Propose Tags ] [ Report a vulnerability ]

A minimal host for sdl2 based reflex apps.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.0.3
Dependencies async (>=2.1 && <2.3), base (>=4.7 && <5), containers (>=0.5 && <0.7), dependent-sum (>=0.7 && <0.8), exception-transformers (>=0.4 && <0.5), mtl (>=2.3 && <2.4), ref-tf (>=0.5 && <0.6), reflex (>=0.9 && <0.10), reflex-sdl2, sdl2 (>=2.5 && <2.6), stm (>=2.4 && <2.6) [details]
License MIT
Copyright Copyright: (c) 2017 - 2019 Schell Scivally
Author Schell Scivally
Maintainer schell@takt.com
Category Game
Home page https://github.com/schell/reflex-sdl2#readme
Source repo head: git clone https://github.com/schell/reflex-sdl2
Uploaded by SchellScivally at 2024-08-21T22:18:22Z
Distributions
Executables reflex-sdl2-exe
Downloads 2066 total (19 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for reflex-sdl2-0.3.0.3

[back to package description]

reflex-sdl2

status

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