Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGl Game Programming errata


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Quocain   Members   -  Reputation: 122

Like
Likes
Like

Posted 05 October 2001 - 05:22 AM

Hi, 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, Bruno Errata: p41 in code listing: PeekMesage(&msg, hwnd, NULL NULL, PM_REMOVE); Should be: 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...

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS