Changeset 1032 for code/trunk/src/orxonox/objects
- Timestamp:
- Apr 12, 2008, 4:08:29 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Ambient.cc
r871 r1032 37 37 #include "util/String2Number.h" 38 38 #include "util/Math.h" 39 #include " ../core/Debug.h"40 #include " ../core/CoreIncludes.h"41 #include " ../Orxonox.h"39 #include "core/Debug.h" 40 #include "core/CoreIncludes.h" 41 #include "GraphicsEngine.h" 42 42 #include "core/XMLPort.h" 43 43 … … 76 76 void Ambient::setAmbientLight(const ColourValue& colour) 77 77 { 78 Orxonox::getSingleton()->getSceneManager()->setAmbientLight(colour);78 GraphicsEngine::getSingleton().getSceneManager()->setAmbientLight(colour); 79 79 } 80 80 -
code/trunk/src/orxonox/objects/Camera.cc
r1021 r1032 13 13 #include "util/String2Number.h" 14 14 #include "util/Math.h" 15 #include "../core/Debug.h" 16 #include "../core/CoreIncludes.h" 17 #include "../Orxonox.h" 18 #include "../GraphicsEngine.h" 15 #include "core/Debug.h" 16 #include "core/CoreIncludes.h" 17 #include "GraphicsEngine.h" 19 18 20 19 #include "Camera.h" … … 35 34 void Camera::loadParams(TiXmlElement* xmlElem) 36 35 { 37 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();36 Ogre::SceneManager* mgr = GraphicsEngine::getSingleton().getSceneManager(); 38 37 39 38 if (xmlElem->Attribute("name") && xmlElem->Attribute("pos") && xmlElem->Attribute("lookat") && xmlElem->Attribute("node")) … … 68 67 69 68 // FIXME: unused var 70 Ogre::Viewport* vp = orxonox::Orxonox::getSingleton()->getOgrePointer()->getRenderWindow()->addViewport(cam);69 Ogre::Viewport* vp = GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam); 71 70 72 71 -
code/trunk/src/orxonox/objects/Explosion.cc
r790 r1032 32 32 #include <OgreSceneNode.h> 33 33 34 #include " ../core/CoreIncludes.h"34 #include "core/CoreIncludes.h" 35 35 #include "util/Math.h" 36 #include " ../Orxonox.h"37 #include " ../particle/ParticleInterface.h"36 #include "GraphicsEngine.h" 37 #include "particle/ParticleInterface.h" 38 38 39 39 #include "Explosion.h" … … 56 56 Vector3 position = owner->getNode()->getWorldPosition(); 57 57 58 this->particle_ = new ParticleInterface( Orxonox::getSingleton()->getSceneManager(), "explosion" + this->getName(), "Orxonox/treibwerk");58 this->particle_ = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(), "explosion" + this->getName(), "Orxonox/treibwerk"); 59 59 this->particle_->getParticleSystem()->setParameter("local_space", "true"); 60 60 this->particle_->newEmitter(); -
code/trunk/src/orxonox/objects/Model.cc
r1021 r1032 31 31 #include "util/Tokenizer.h" 32 32 #include "util/String2Number.h" 33 #include " ../core/CoreIncludes.h"34 #include " ../Orxonox.h"33 #include "core/CoreIncludes.h" 34 #include "GraphicsEngine.h" 35 35 #include "core/XMLPort.h" 36 36 -
code/trunk/src/orxonox/objects/Skybox.cc
r871 r1032 35 35 //#include "util/Tokenizer.h" 36 36 //#include "util/String2Number.h" 37 #include " ../Orxonox.h"38 #include " ../core/CoreIncludes.h"39 #include " ../core/Debug.h"37 #include "GraphicsEngine.h" 38 #include "core/CoreIncludes.h" 39 #include "core/Debug.h" 40 40 #include "core/XMLPort.h" 41 41 … … 68 68 void Skybox::setSkybox(const std::string& skyboxname) 69 69 { 70 Orxonox::getSingleton()->getSceneManager()->setSkyBox(true, skyboxname);70 GraphicsEngine::getSingleton().getSceneManager()->setSkyBox(true, skyboxname); 71 71 } 72 72 -
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 -
code/trunk/src/orxonox/objects/WorldEntity.cc
r1021 r1032 34 34 #include "util/Tokenizer.h" 35 35 #include "util/String2Number.h" 36 #include " ../core/CoreIncludes.h"37 #include " ../Orxonox.h"36 #include "core/CoreIncludes.h" 37 #include "GraphicsEngine.h" 38 38 #include "WorldEntity.h" 39 39 #include "core/XMLPort.h" … … 58 58 this->momentum_ = 0; 59 59 60 if ( Orxonox::getSingleton()->getSceneManager())60 if (GraphicsEngine::getSingleton().getSceneManager()) 61 61 { 62 62 std::ostringstream name; 63 63 name << (WorldEntity::worldEntityCounter_s++); 64 64 this->setName("WorldEntity" + name.str()); 65 this->node_ = Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->createChildSceneNode(this->getName());65 this->node_ = GraphicsEngine::getSingleton().getSceneManager()->getRootSceneNode()->createChildSceneNode(this->getName()); 66 66 67 67 registerAllVariables(); -
code/trunk/src/orxonox/objects/weapon/BaseWeapon.cc
r871 r1032 34 34 35 35 #include "util/Math.h" 36 #include " ../../Orxonox.h"36 #include "Orxonox.h" 37 37 #include "Bullet.h" 38 38 #include "BulletManager.h" … … 47 47 48 48 BaseWeapon::BaseWeapon() 49 : sceneMgr_( Orxonox::getSingleton()->getSceneManager()),49 : sceneMgr_(GraphicsEngine::getSingleton().getSceneManager()), 50 50 bulletCounter_(0), 51 51 bulletManager_(Orxonox::getSingleton()->getBulletMgr()),
Note: See TracChangeset
for help on using the changeset viewer.