I don''t know if they have been mentioned before but here are some errors I found in the book. Maybe gamedev can add them to the errata page of the book (glbook.gamedev.net)
Excellent book otherwise,
p41 in code listing:
PeekMesage(&msg, hwnd, NULL NULL, PM_REMOVE);
PeekMesage(&msg, NULL, NULL NULL, PM_REMOVE);
otherwise you don''t capture the WM_QUIT message.
This error is also in a lot of the source code from the book (early chapters).
In the timer class on page 651:
in the LockFPS funtion, second last line:
s_lastTime = m_startTime should be = currentTime, like in the GetFPS function...
In the code of the camera class CCamera in the last two chapters in the book, in the last two constructors. The yaw parameter should take into account what the lookAt vector is, so instead of yaw = 0.0f; you should have: yaw = -(float)(180.0/3.141592654*acos(lookAt.x)); for example...