Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.91 KB

README.org

File metadata and controls

57 lines (40 loc) · 1.91 KB

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