OpenGL tutorial from http://www.opengl-tutorial.org/
Due to the old graphics hardware, it's OpenGL v2.1 here.
- Install the latest driver for graphics hardware.
- Install the required lib, compiler and tools: cmake make g++ libx11-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxext-dev
- Download the source code and unzip it to, say, ~/OpenGL-Tutorial/
- Run commands:
mkdir build
&&cd build
&&cmake
.. - Run
make
to build project.