This program simply generates a scene with random midpoint displacement algorithm.
The scene is also lit and shadowed in a pretty bad way and therefore it takes quite a lot of time.

NOTE:
The landscape.cpp file contains all the interesting stuff and all the defines you can easily play with.

You can move inside the scene with mouse and wsad



Running the program:
The program comes with Windows and Linux binaries that should both run out of the box. Note that you must have your graphic card drivers installed and support for OpenGL 1.1.
The Windows binary is linked dynamically to the SDL.dll provided and the Linux binary is linked statically and should not need installation of additional libraries.
Note that the Linux binary is not compiled with the provided Makefile that instead uses dynamic linking. If the Linux binary doesn't work try building your own.



Compiling instructions:
Linux users may use the provided Makefile to compile the program. You must have the dev package of SDL installed to compile.
If you don't use the Makefile (like on Windows) you should link at least lglu32, lopengl32, lSDL and lSDLmain (and lmingw32 if using MinGW).



You may use all the source codes for anything you want.