|
From: Seb <whi...@us...> - 2004-10-16 14:37:06
|
Update of /cvsroot/epfl/tggame In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21227 Modified Files: game.cc Log Message: La mise a jour de la position et l'orientation du listener se fait maintenant par l'appel a une methode du soundmanager Index: game.cc =================================================================== RCS file: /cvsroot/epfl/tggame/game.cc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** game.cc 15 Oct 2004 14:01:01 -0000 1.14 --- game.cc 16 Oct 2004 14:36:57 -0000 1.15 *************** *** 122,133 **** { Camera* myCam = pSceneManager->GetCamera(); ! ! Vector3 position = myCam->GetPosition(); ! ! Vector3 forward = myCam->GetForward(); ! Vector3 up = myCam->GetUp(); ! ! pSoundManager->SetListenerPosition(position.x,position.y,position.z); ! pSoundManager->SetListenerOrientation(forward.x,forward.y,forward.z,up.x,up.y,up.z); float t = pTimer->GetFrameInterval (); --- 122,126 ---- { Camera* myCam = pSceneManager->GetCamera(); ! pSoundManager->UpdateListener(myCam); float t = pTimer->GetFrameInterval (); |