Changeset 1032 for code/trunk/src/orxonox/tools/Light.cc
- Timestamp:
- Apr 12, 2008, 4:08:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.