Changeset 126 for code/branches/main_reto/src
- Timestamp:
- Oct 30, 2007, 6:22:22 PM (17 years ago)
- Location:
- code/branches/main_reto/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.