Changeset 1032 for code/trunk/src/orxonox/tools
- Timestamp:
- Apr 12, 2008, 4:08:29 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/tools/BillboardSet.cc
r790 r1032 32 32 #include <OgreSceneManager.h> 33 33 34 #include " ../Orxonox.h"34 #include "GraphicsEngine.h" 35 35 #include "util/Math.h" 36 36 … … 50 50 std::ostringstream name; 51 51 name << (BillboardSet::billboardSetCounter_s++); 52 this->billboardSet_ = Orxonox::getSingleton()->getSceneManager()->createBillboardSet("Billboard" + name.str(), count);52 this->billboardSet_ = GraphicsEngine::getSingleton().getSceneManager()->createBillboardSet("Billboard" + name.str(), count); 53 53 this->billboardSet_->createBillboard(position, colour); 54 54 this->billboardSet_->setMaterialName(file); … … 58 58 { 59 59 if (this->billboardSet_) 60 Orxonox::getSingleton()->getSceneManager()->destroyBillboardSet(this->billboardSet_);60 GraphicsEngine::getSingleton().getSceneManager()->destroyBillboardSet(this->billboardSet_); 61 61 } 62 62 } -
code/trunk/src/orxonox/tools/Light.cc
r790 r1032 5 5 #include <OgreSceneManager.h> 6 6 7 #include " ../Orxonox.h"7 #include "GraphicsEngine.h" 8 8 9 9 #include "Light.h" … … 22 22 std::ostringstream name; 23 23 name << (Light::lightCounter_s++); 24 this->light_ = Orxonox::getSingleton()->getSceneManager()->createLight("Light" + name.str());24 this->light_ = GraphicsEngine::getSingleton().getSceneManager()->createLight("Light" + name.str()); 25 25 this->light_->setType(type); 26 26 this->light_->setDiffuseColour(diffuse); … … 31 31 { 32 32 if (this->light_) 33 Orxonox::getSingleton()->getSceneManager()->destroyLight(this->light_);33 GraphicsEngine::getSingleton().getSceneManager()->destroyLight(this->light_); 34 34 } 35 35 } -
code/trunk/src/orxonox/tools/Mesh.cc
r790 r1032 32 32 #include <OgreSceneManager.h> 33 33 34 #include " ../Orxonox.h"34 #include "GraphicsEngine.h" 35 35 36 36 #include "Mesh.h" … … 49 49 std::ostringstream name; 50 50 name << (Mesh::meshCounter_s++); 51 this->entity_ = Orxonox::getSingleton()->getSceneManager()->createEntity("Mesh" + name.str(), file);51 this->entity_ = GraphicsEngine::getSingleton().getSceneManager()->createEntity("Mesh" + name.str(), file); 52 52 } 53 53 … … 55 55 { 56 56 if (this->entity_) 57 Orxonox::getSingleton()->getSceneManager()->destroyEntity(this->entity_);57 GraphicsEngine::getSingleton().getSceneManager()->destroyEntity(this->entity_); 58 58 } 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.