Random 3D environment used for killing time
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
dep
obj
src
test
vs/Distance
.gitattributes
.gitignore
.gitmodules
LICENSE.md
Makefile
README.md

README.md

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

Linux

Dependencies

  • libx11-dev
  • libgl1-mesa-dev

Instructions

# build stuff
make

# clean stuff
make clean

Windows (VS)

(VS 2017 solution coming soon)

Windows (GCC)

Dependencies

  • GL\gl.h and GL\glu.h
  • opengl32.lib
  • MinGW (or MinGW-w64), MSYS (comes with Git for Windows)

Instructions

REM build stuff
make

REM clean stuff
make clean

Testing

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.