Changeset 4735 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jun 30, 2005, 12:41:19 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4730 r4735 182 182 delete this->nullParent; 183 183 delete this->entities; 184 delete this->lightMan;184 delete LightManager::getInstance(); 185 185 delete this->trackManager; 186 186 delete this->particleEngine; … … 289 289 this->particleEngine = ParticleEngine::getInstance(); 290 290 this->trackManager = TrackManager::getInstance(); 291 this->lightMan =LightManager::getInstance();291 LightManager::getInstance(); 292 292 this->nullParent = NullParent::getInstance (); 293 293 this->nullParent->setName ("NullParent"); … … 414 414 ////////////////////////////// 415 415 416 LoadParam<LightManager>(root, "LightManager", LightManager::getInstance(), &LightManager::loadParams); 417 416 418 LoadParam<ParticleEngine>(root, "ParticleEngine", ParticleEngine::getInstance(), &ParticleEngine::loadParams); 417 419 LoadParam<PhysicsEngine>(root, "PhysicsEngine", PhysicsEngine::getInstance(), &PhysicsEngine::loadParams); … … 451 453 452 454 453 lightMan->setAmbientColor(.1,.1,.1);454 lightMan->addLight();455 // lightMan->setAttenuation(1.0, .01, 0.0);456 // lightMan->setDiffuseColor(1,1,1);457 // lightMan->addLight(1);458 // lightMan->setPosition(20, 10, -20);459 // lightMan->setDiffuseColor(0,0,0);460 //lightMan->debug();461 lightMan->setPosition(-5.0, 50.0, -40.0);462 lightMan->addLight();463 lightMan->setPosition(100, 80, 60);455 // lightMan->setAmbientColor(.1,.1,.1); 456 // lightMan->addLight(); 457 // // lightMan->setAttenuation(1.0, .01, 0.0); 458 // // lightMan->setDiffuseColor(1,1,1); 459 // // lightMan->addLight(1); 460 // // lightMan->setPosition(20, 10, -20); 461 // // lightMan->setDiffuseColor(0,0,0); 462 // //lightMan->debug(); 463 // lightMan->setPosition(-5.0, 50.0, -40.0); 464 // lightMan->addLight(); 465 // lightMan->setPosition(100, 80, 60); 464 466 465 467 // trackManager->setBindSlave(env); … … 625 627 626 628 // LIGHT initialisation 627 lightMan->setAmbientColor(.1,.1,.1);628 lightMan->addLight();629 lightMan->debug();629 LightManager::getInstance()->setAmbientColor(.1,.1,.1); 630 LightManager::getInstance()->addLight(); 631 LightManager::getInstance()->debug(); 630 632 631 633 switch(this->debugWorldNr) … … 639 641 case DEBUG_WORLD_0: 640 642 { 641 lightMan->setPosition(-5.0, 10.0, -40.0);643 LightManager::getInstance()->getLight()->setAbsCoor(-5.0, 10.0, -40.0); 642 644 643 645 … … 903 905 904 906 TextEngine::getInstance()->draw(); 905 lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes //907 LightManager::getInstance()->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 906 908 } 907 909
Note: See TracChangeset
for help on using the changeset viewer.