Example Code

The OpenGL SuperBible example code to accompany the book is available on on GitHub. The repository currently includes 82 sample applications, most of which are featured or described in the book, or were used to generate the screenshots shown in the book. In addition to the source code, you will need the media archive, which contains all of the models and textures used by the samples. Beware, the media archive is over 100MB! A configuration file list for CMake is also included (download CMake here). This file has been used to generate project files for Visual Studio on Windows and Makefiles for Linux.

Check out the source code in git or download the archive from GitHub and unpack it into a directory on your machine, unpack the media archive to the bin/media subdirectory and then follow the instructions in the README and HOWTOBUILD.txt files.

If you’re interested in contributing or forking the code for yourself, feel free to issue a pull request or file issues on GitHub.

The samples have been tested on Windows and Linux using recent hardware and drivers from major vendors. The source no longer supports Mac because the OpenGL implementation is too out of date to run any of the new samples and the overhead of keeping the more basic samples working there is too great.


Comments are closed.