Changeset 3597 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Mar 17, 2005, 11:04:59 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3596 r3597 73 73 delete this->nullParent; 74 74 delete this->entities; 75 delete this->light ;75 delete this->lightMan; 76 76 delete this->trackManager; 77 77 } … … 297 297 this->spawn(terrain); 298 298 // LIGHT initialisation 299 light = Light::getInstance(); 300 light->setAmbientColor(.1,.1,.1); 301 light->addLight(); 302 light->setAttenuation(QUADRATIC, 1.0); 303 light->setAttenuation(CONSTANT, 2.0); 304 light->setAttenuation(QUADRATIC, 1.0); 305 light->setPosition(10.0, 30.0, 10.0); 306 light->setDiffuseColor(1,1,1); 307 // light->addLight(1); 308 // light->setPosition(20, 10, -20); 309 // light->setDiffuseColor(0,0,0); 310 light->debug(); 299 lightMan = LightManager::getInstance(); 300 lightMan->setAmbientColor(.1,.1,.1); 301 lightMan->addLight(); 302 lightMan->setPosition(10.0, 30.0, 10.0); 303 lightMan->setAttenuation(1.0, 0, 0); 304 lightMan->setDiffuseColor(1,1,1); 305 // lightMan->addLight(1); 306 // lightMan->setPosition(20, 10, -20); 307 // lightMan->setDiffuseColor(0,0,0); 308 lightMan->debug(); 311 309 312 310 -
orxonox/trunk/src/story_entities/world.h
r3565 r3597 17 17 class GLMenuImageScreen; 18 18 class Skysphere; 19 class Light ;19 class LightManager; 20 20 class FontSet; 21 21 class Terrain; … … 72 72 73 73 PNode* nullParent; //!< The zero-point, that everything has as its parent. 74 TrackManager* trackManager; //!< The reference of the TrackManager that handles the course through the Level.75 Camera* localCamera; //!< The current Camera74 TrackManager* trackManager; //!< The reference of the TrackManager that handles the course through the Level. 75 Camera* localCamera; //!< The current Camera 76 76 Skysphere* skySphere; //!< The Environmental Heaven of orxonox \todo insert this to environment insted 77 Light * light;//!< The Lights of the Level77 LightManager* lightMan; //!< The Lights of the Level 78 78 Terrain* terrain; //!< The Terrain of the World. 79 79
Note: See TracChangeset
for help on using the changeset viewer.