Changeset 126 for code/branches/main_reto
- Timestamp:
- Oct 30, 2007, 6:22:22 PM (17 years ago)
- Location:
- code/branches/main_reto
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/include/RunManager.h
r123 r126 8 8 #include "OgreControl.h" 9 9 #include "OrxonoxScene.h" 10 #include "OrxonoxShip.h" 11 #include "SteerableNode.h" 10 12 11 13 //Use this define to signify OIS will be used as a DLL … … 31 33 OgreControl *mOgre; 32 34 33 // these objects are meant to be static in existance. 35 SceneManager *mSceneMgr; 36 RenderWindow* mWindow; 37 34 38 OrxonoxScene *mScene; 35 SceneManager *mSceneMgr;36 39 Camera* mCamera; 37 RenderWindow* mWindow; 40 SteerableNode *mShipNode; 41 OrxonoxShip *mShip; 38 42 39 43 Vector3 mTranslateVector; -
code/branches/main_reto/src/RunManager.cpp
r123 r126 11 11 mInputManager(0), mMouse(0), mKeyboard(0), mJoy(0) 12 12 { 13 // create new scene13 // create new SceneManger 14 14 mSceneMgr = mOgre->getRoot()->createSceneManager(ST_GENERIC,"mScene"); 15 16 17 // create various objects 18 // background scene 15 19 mScene = new OrxonoxScene(mSceneMgr); 16 17 20 // create camera and viewport 18 21 createCamera(); 19 22 createViewports(); 20 21 23 mScene->initialise(); 24 25 // create a steerable SceneNode for the spaceship to be attached to 26 /*mShipNode = new SteerableNode(mSceneMgr, "shipNode"); 27 mShipNode->setPosition(Vector3(20, 20, 20)); 28 mSceneMgr->getRootSceneNode()->addChild(mShipNode);*/ 29 30 // spaceship 31 /*mShip = static_cast<OrxonoxShip*>(mSceneMgr->createEntity("ship", "ninja.mesh")); 32 mShipNode->attachObject(mShip);*/ 22 33 23 34 … … 65 76 if (mScene) 66 77 delete mScene; 78 79 /*if (mShipNode) 80 delete mShipNode; 81 82 if (mShip) 83 delete mShip;*/ 67 84 } 68 85 -
code/branches/main_reto/weapon_framework/weapon_framework.vcproj
r123 r126 184 184 > 185 185 <File 186 RelativePath="..\src\CameraManager.cpp" 187 > 188 </File> 189 <File 186 190 RelativePath="..\src\main.cpp" 187 191 > … … 200 204 </File> 201 205 <File 206 RelativePath="..\include\OrxonoxShip.cpp" 207 > 208 </File> 209 <File 202 210 RelativePath="..\src\RunManager.cpp" 211 > 212 </File> 213 <File 214 RelativePath="..\src\SteerableNode.cpp" 203 215 > 204 216 </File> … … 210 222 > 211 223 <File 224 RelativePath="..\include\CameraManager.h" 225 > 226 </File> 227 <File 212 228 RelativePath="..\include\OgreControl.h" 213 229 > … … 222 238 </File> 223 239 <File 240 RelativePath="..\include\OrxonoxShip.h" 241 > 242 </File> 243 <File 224 244 RelativePath="..\include\RunManager.h" 245 > 246 </File> 247 <File 248 RelativePath="..\include\SteerableNode.h" 225 249 > 226 250 </File>
Note: See TracChangeset
for help on using the changeset viewer.