Chapter1Figs is sample C++ code illustrating the use of Modern OpenGL. It is part of a set of programs introducing the use of Modern OpenGL, which are intended to accompany a possible second edition of the book 3D Computer Graphics: A mathematical approach with OpenGL, Cambridge University Press, 2003.
Chapter1Figs renders many of the figures in Chapter 1 of the this book. It was used to test the correctness of the code fragments given in Chapter 1. It also is available so that you can see how those code fragments fit into a fully functioning OpenGL program. It consists of one core source file, Chapter1Figs.cpp and one file of GLSL shader programs, Chapter1Figs.glsl. It also uses GlShaderMgr.cpp and GlShaderMgr.h; these are part of the GlShaderMgr software package, and are available the web pages for GlShaderMgr. There a couple of options available for downloading the core Chapter1Figs files:
glDrawArrays
and GL_TRIANGLES.glDrawElements
,
using the three triangle modes GL_TRIANGLES, GL_TRIANGLE_FAN, and
GL_TRIANGLE_STRIP.
Version 1.1 of Chaper1Figs, March 11, 2019.