To get this running on OS X Yosemite, you'll need to install a few things:
~$ brew install homebrew/x11/freeglut
~$ brew install gcc49
~$ brew install devil
~$ ./run 3 31 "top_data/*.hgt"
~$ ./run 10 255 "top_data/*.hgt"
- Note that the second argument is of the form (2^n)-1 where n is an integer
- w: move forward
- s: move backward
- a: turn left
- d: turn right
- up arrow: move up
- down arrow: move down
- left arrow: strafe left
- right arrow: strafe right
~$ valgrind --tool=memcheck --error-limit=no --track-origins=yes --leak-check=yes ./run 10 31 "top_data/*.hgt"