The OpenGL SuperBible example code to accompany the book is available for download. The archive currently includes 74 sample applications, most of which are featured or described in the book, or were used to generate the screenshots shown in the book. The examples are split into two archives; the source code archive contains all of the source code for the examples, and the media archive contains all of the models and textures used by the samples. Beware, the media archive is over 100MB! Included are project files for Microsoft Visual Studio 2010, which was used to write the code. These project files should load up in newer versions of Visual Studio, including the free Express editions which are available from Microsoft’s website. In addition, a make list for CMake is also included (download CMake here). This file has been used to generate Makefiles for Linux and Mac.
Unpack the source archive to a directory on your machine, unpack the media archive to the
bin/media subdirectory and then follow the instructions in the
If you’re interested in contributing or forking the code for yourself, it now lives on gitub here:
The samples have been tested on Windows and Linux using recent hardware and drivers from AMD and NVIDIA. Many of the samples also work on Mac OS X 10.9 (Mavericks), although that platform only supports OpenGL 4.1 at this point and so several of the examples won’t work. The code for the samples from the Mac chapter are available as a separate download. This package also includes the OpenGL ES version of the Stone Henge example that should work on iOS devices.
- Download the OpenGL SuperBible Example Source Code
- Download the OpenGL SuperBible Example Media Files
- Download the OpenGL SuperBible Mac Examples
Screenshots for some of the applications are shown below.