Changeset 2537 for code/branches/presentation/src/orxonox/objects
- Timestamp:
- Dec 28, 2008, 7:21:17 PM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/Scene.cc
r2535 r2537 73 73 { 74 74 // create a dummy SceneManager of our own since we don't have Ogre::Root. 75 this->sceneManagerDedicated_ = new Ogre::DefaultSceneManager(""); 76 this->rootSceneNode_ = this->sceneManagerDedicated_->getRootSceneNode(); 77 this->sceneManager_ = 0; 75 this->sceneManager_ = new Ogre::DefaultSceneManager(""); 76 this->rootSceneNode_ = this->sceneManager_->getRootSceneNode(); 78 77 } 79 78 … … 102 101 else if (!Core::showsGraphics()) 103 102 { 104 delete this->sceneManager Dedicated_;103 delete this->sceneManager_; 105 104 } 106 105 -
code/branches/presentation/src/orxonox/objects/Scene.h
r2485 r2537 80 80 81 81 Ogre::SceneManager* sceneManager_; 82 Ogre::SceneManager* sceneManagerDedicated_;83 82 Ogre::SceneNode* rootSceneNode_; 84 83 -
code/branches/presentation/src/orxonox/objects/worldentities/Backlight.cc
r2500 r2537 214 214 this->update_trailmaterial(); 215 215 if (this->ribbonTrail_) 216 this->ribbonTrail_->addNode( const_cast<Ogre::SceneNode*>(this->getNode()));216 this->ribbonTrail_->addNode(this->node_); 217 217 } 218 218 } -
code/branches/presentation/src/orxonox/objects/worldentities/Billboard.cc
r2485 r2537 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/XMLPort.h" 36 #include "core/Core.h" 36 37 #include "objects/Scene.h" 37 38 … … 80 81 if (!this->billboard_.getBillboardSet()) 81 82 { 82 if (this->getScene() && this->getScene()->getSceneManager())83 if (this->getScene() && Core::showsGraphics()) 83 84 { 84 85 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1); … … 97 98 { 98 99 /* 99 if (this->getScene() && this->getScene()->getSceneManager() && (this->material_ != ""))100 if (this->getScene() && Core::showsGraphics() && (this->material_ != "")) 100 101 { 101 102 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1); -
code/branches/presentation/src/orxonox/objects/worldentities/ExplosionChunk.cc
r2485 r2537 47 47 RegisterObject(ExplosionChunk); 48 48 49 if (!this->getScene() || ! this->getScene()->getSceneManager())49 if (!this->getScene() || !Core::showsGraphics() || !this->getScene()->getSceneManager()) 50 50 ThrowException(AbortLoading, "Can't create ExplosionChunk, no scene or no scene manager given."); 51 51 -
code/branches/presentation/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2497 r2537 107 107 } 108 108 109 if ( this->getScene() && this->getScene()->getSceneManager())109 if (Core::showsGraphics() && this->getScene() && this->getScene()->getSceneManager()) 110 110 { 111 111 try -
code/branches/presentation/src/orxonox/objects/worldentities/triggers/Trigger.cc
r2500 r2537 36 36 #include "core/ConsoleCommand.h" 37 37 #include "core/XMLPort.h" 38 #include "core/Core.h" 38 39 #include "objects/Scene.h" 39 40 … … 66 67 // this->bUpdating_ = false; 67 68 68 if (this->getScene() && this->getScene()->getSceneManager())69 if (this->getScene() && Core::showsGraphics()) 69 70 { 70 71 this->debugBillboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 0.0, 0.0), 1);
Note: See TracChangeset
for help on using the changeset viewer.