What is it?
A set of goodies one probably wouldn't want to make more than once, such as code to create windows, get a GL3+ context, process input, pump events, both on Linux and Windows. A few of my projects rely on it, namely Shadertoy, Shiny and, eventually, OpenRail, which is in a state of disarray at the moment.
Getting it working
# build stuff make # clean stuff make clean
(VS 2017 solution coming soon)
- GL\gl.h and GL\glu.h
- MinGW (or MinGW-w64), MSYS (comes with Git for Windows)
REM build stuff make REM clean stuff make clean
Since Distance builds as a library, it's difficult to test in itself. Good news is, there's a separate test program included in the
test/ directory, which is built the same way Distance is.
Right now all that test program really does is open a window and, consequently, tests whether Distance is able to set up a GL3 context. It'll probably get more useful as Distance envolves.