This folder contains the C++ examples for Chapter 4

example1.cpp: Orthogonal viewing of a cube using the LookAt()
function to position the Eye (i.e., the camera or the viewer) and
to fixate at the origin (the centre of the cube). The Eye position
and the Ortho parameters (i.e., the clipping planes) can be changed
via keyboard events. The camera view and projection matrices are
sent to the vertex shader.

example2.cpp: similar to example 1 except that the Frustum function
is used to get a perspective view.

example3.cpp: similar to example 2 except that the Perspective function
is used instead. In this example, the user has fewer options to manipulate
the clipping volume.

Du Huynh
Revised April 2017


