Opengl game programming Chapter 12