OpenGL code and exercise from Anton's OpenGL book