Changeset 1654 for code/branches/gui/src/orxonox/tools
- Timestamp:
- Aug 5, 2008, 9:55:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/tools/ParticleInterface.cc
r1653 r1654 56 56 this->detaillevel_ = (unsigned int)detaillevel; 57 57 this->particleSystem_ = GraphicsEngine::getInstance().getLevelSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName); 58 this->particleSystem_->setSpeedFactor(Orxonox::get Singleton().getTimeFactor());58 this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor()); 59 59 60 60 if (GraphicsEngine::getInstance().getDetailLevelParticle() < (unsigned int)this->detaillevel_) … … 171 171 void ParticleInterface::setSpeedFactor(float factor) 172 172 { 173 this->particleSystem_->setSpeedFactor(Orxonox::get Singleton().getTimeFactor() * factor);173 this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor); 174 174 } 175 175 float ParticleInterface::getSpeedFactor() const 176 176 { 177 return (this->particleSystem_->getSpeedFactor() / Orxonox::get Singleton().getTimeFactor());177 return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor()); 178 178 } 179 179
Note: See TracChangeset
for help on using the changeset viewer.