Compile using gcc -lm -lSDL2 -o terrain
Requires SDL2 library
Usage: terrain heightmap
Heightmap file is a set of integers separated by spaces and newlines. Every newline starts a new row, and spaces in a line generates a new column in that row.
Once open you can use the following keys:
- left arrow/right arrow: rotate around xy axis
- up arrow/down arrow: rotate around yz axis
- w/s: scale up and down the terrain map
- escape to exit