Skip to content

A GLFW-b adapter for the Haskell Reflex FRP implementation.

License

Notifications You must be signed in to change notification settings

deepfire/reflex-glfw

Repository files navigation

Pre-release NOTE

reflex-glfw awaits to be released on Hackage:

progress
https://github.com/deepfire/reflex-glfw/milestone/1
post issues here
https://github.com/deepfire/reflex-glfw/issues
general feedback here
#7

reflex-glfw

https://api.travis-ci.org/deepfire/reflex-glfw.svg?branch=master

What

reflex-glfw is an adapter between Reflex, a Haskell FRP framework and GLFW-b, a set of GLFW bindings.

Where

The home of reflex-glfw is at its Github page: https://github.com/deepfire/reflex-glfw

Reflex 0.5

reflex-glfw depends on a pre-release version of reflex, which means having to jump through extra hoops to use reflex-glfw.

Installing via Nix

By far the easiest and most reliable way to do this is to employ the Nix package manager, which, unless you already have it, has to be installed first, of course:

Building the demo

Once you have Nix installed, building the demo is as easy as:

# First, enter the fixed environment (NOTE: this can take a while):
nix-shell --no-build-output
# ..then, inside the shell:
cabal build
dist/build/reflex-glfw-demo/reflex-glfw-demo

libGL error: unable to load driver: XXX_dri.so

In case you happen upon #4, at least for nVidia GPUs there’s a semi-automated solution based on https://github.com/deepfire/nix-install-vendor-gl:

git clone https://github.com/deepfire/nix-install-vendor-gl
. ./nix-install-vendor-gl/nix-install-vendor-gl.sh

Screenshot

./screenshot.png

Releases

No releases published

Packages

No packages published

Languages