BasicDrawModes 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.
BasicDrawModes shows some of the basic drawing methods used in OpenGL by illustrating different ways to draw triangle strips. The core source file is BasicDrawModes.cpp; the shader program code is in BDMshaders.glsl plus two source files for reading shaders from files and five source files that provide functions to handle 3-dimensional vectors and 4-dimensional vectors. There are a couple options available for downloading this program:
Version 2.1 of BasicDrawModes, September 12, 2020.