Changeset 127 for code/branches
- Timestamp:
- Oct 30, 2007, 10:41:04 PM (17 years ago)
- Location:
- code/branches/main_reto
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/include/OrxonoxShip.h
r126 r127 6 6 using namespace Ogre; 7 7 8 class OrxonoxShip : public Entity8 class OrxonoxShip 9 9 { 10 10 public: 11 OrxonoxShip( const Ogre::String, Ogre::MeshPtr&);11 OrxonoxShip(SceneManager*, SceneNode*); 12 12 virtual ~OrxonoxShip(); 13 14 /*void setThrust(float); 15 void setSideThrust(float);*/ 13 16 14 17 virtual bool initialise(); 15 18 16 19 protected: 20 SceneManager *mSceneMgr; 21 SceneNode *mRootNode; 22 Entity *mShip; 17 23 }; 18 24 -
code/branches/main_reto/include/RunManager.h
r126 r127 38 38 OrxonoxScene *mScene; 39 39 Camera* mCamera; 40 S teerableNode *mShipNode;40 SceneNode *mShipNode; 41 41 OrxonoxShip *mShip; 42 42 -
code/branches/main_reto/include/SteerableNode.h
r126 r127 6 6 using namespace Ogre; 7 7 8 class SteerableNode : public SceneNode8 class SteerableNode 9 9 { 10 10 public: -
code/branches/main_reto/src/RunManager.cpp
r126 r127 8 8 mTranslateVector(Vector3::ZERO), mStatsOn(true), mNumScreenShots(0), 9 9 mMoveScale(0.0f), mRotScale(0.0f), mTimeUntilNextToggle(0), mFiltering(TFO_BILINEAR), 10 mAniso(1), mSceneDetailIndex(0), mMoveSpeed( 100), mRotateSpeed(36), mDebugOverlay(0),10 mAniso(1), mSceneDetailIndex(0), mMoveSpeed(300), mRotateSpeed(36), mDebugOverlay(0), 11 11 mInputManager(0), mMouse(0), mKeyboard(0), mJoy(0) 12 12 { … … 18 18 // background scene 19 19 mScene = new OrxonoxScene(mSceneMgr); 20 21 // create a steerable SceneNode for the spaceship to be attached to 22 mShipNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("ShipNode", Vector3(20, 20, 20)); 23 24 // spaceship 25 mShip = new OrxonoxShip(mSceneMgr, mShipNode); 26 27 // load all resources and create the entities 28 mScene->initialise(); 29 mShip->initialise(); 30 20 31 // create camera and viewport 21 32 createCamera(); 22 33 createViewports(); 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);*/ 33 34 35 // Set default mipmap level (NB some APIs ignore this) 36 TextureManager::getSingleton().setDefaultNumMipmaps(5); 34 37 35 38 using namespace OIS; … … 76 79 if (mScene) 77 80 delete mScene; 78 79 /*if (mShipNode)80 delete mShipNode;81 82 if (mShip)83 delete mShip;*/84 81 } 85 82 … … 369 366 { 370 367 mCamera = mSceneMgr->createCamera("PlayerCam"); 368 mShipNode->attachObject(mCamera); 371 369 mCamera->setNearClipDistance(5); 372 370 mCamera->setPosition(Vector3(0,10,500)); … … 384 382 mCamera->setAspectRatio( 385 383 Real(vp->getActualWidth()) / Real(vp->getActualHeight())); 386 387 // Set default mipmap level (NB some APIs ignore this) 388 TextureManager::getSingleton().setDefaultNumMipmaps(5); 389 } 390 391 384 } 385 386 -
code/branches/main_reto/weapon_framework/weapon_framework.vcproj
r126 r127 211 211 > 212 212 </File> 213 <File214 RelativePath="..\src\SteerableNode.cpp"215 >216 </File>217 213 </Filter> 218 214 <Filter … … 245 241 > 246 242 </File> 247 <File248 RelativePath="..\include\SteerableNode.h"249 >250 </File>251 243 </Filter> 252 244 <Filter
Note: See TracChangeset
for help on using the changeset viewer.