Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Scenes/FlashScene/FlashScene.cpp

Diff revisions: vs.
  @@ -10,10 +10,10 @@
10 10 }
11 11
12 12 void FlashScene::processInput(){
13 - if(state()->_angleLR) renderState()->getCamera()->RotateX(state()->_angleLR);
14 - if(state()->_angleUD) renderState()->getCamera()->RotateY(state()->_angleUD );
15 - if(state()->_moveFB) renderState()->getCamera()->MoveForward(state()->_moveFB /5);
16 - if(state()->_moveLR) renderState()->getCamera()->MoveStrafe(state()->_moveLR /5);
13 + if(state()._angleLR) renderState().getCamera().rotateYaw(state()._angleLR);
14 + if(state()._angleUD) renderState().getCamera().rotatePitch(state()._angleUD );
15 + if(state()._moveFB) renderState().getCamera().moveForward(state()._moveFB);
16 + if(state()._moveLR) renderState().getCamera().moveStrafe(state()._moveLR);
17 17 }
18 18
19 19 void FlashScene::processTasks(const U32 time){
  @@ -24,9 +24,9 @@
24 24 }
25 25 }
26 26
27 - bool FlashScene::load(const std::string& name){
28 - ///Load scene resources
29 - SCENE_LOAD(name,true,true);
27 + bool FlashScene::load(const std::string& name, CameraManager* const cameraMgr){
28 + //Load scene resources
29 + bool loadState = SCENE_LOAD(name,cameraMgr,true,true);
30 30 addDefaultLight();
31 31 addDefaultSky();
32 32 return loadState;