Changeset 1032 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Apr 12, 2008, 4:08:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1024 r1032 41 41 #include "core/CoreIncludes.h" 42 42 #include "core/Debug.h" 43 #include " Orxonox.h"43 #include "GraphicsEngine.h" 44 44 #include "core/InputManager.h" 45 45 #include "particle/ParticleInterface.h" … … 156 156 { 157 157 // START CREATING THRUSTER 158 this->tt_ = new ParticleInterface( Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");158 this->tt_ = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow"); 159 159 this->tt_->getParticleSystem()->setParameter("local_space","true"); 160 160 this->tt_->newEmitter(); … … 271 271 void SpaceShip::setCamera(const std::string& camera) 272 272 { 273 Ogre::Camera *cam = Orxonox::getSingleton()->getSceneManager()->createCamera("ShipCam");273 Ogre::Camera *cam = GraphicsEngine::getSingleton().getSceneManager()->createCamera("ShipCam"); 274 274 this->camNode_ = this->getNode()->createChildSceneNode("CamNode"); 275 275 /* … … 286 286 287 287 this->camNode_->attachObject(cam); 288 Orxonox::getSingleton()->getOgrePointer()->getRenderWindow()->addViewport(cam);288 GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam); 289 289 } 290 290
Note: See TracChangeset
for help on using the changeset viewer.