Visit OpenGL Torus page how to construct and draw a torus geometry. The src directory contains make files for Linux and macOS. Compile the project with make command in the terminal.
make -f Makefile.linux
make -f Makefile.mac
For Windows, use Code::Blocks or VisualStudio to compile the project.