Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3597 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Mar 17, 2005, 11:04:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Light is now a World-entity.

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3596 r3597  
    7373  delete this->nullParent;
    7474  delete this->entities;
    75   delete this->light;
     75  delete this->lightMan;
    7676  delete this->trackManager;
    7777}
     
    297297  this->spawn(terrain);
    298298  // 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();
    311309
    312310
  • orxonox/trunk/src/story_entities/world.h

    r3565 r3597  
    1717class GLMenuImageScreen;
    1818class Skysphere;
    19 class Light;
     19class LightManager;
    2020class FontSet;
    2121class Terrain;
     
    7272
    7373  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 Camera
     74  TrackManager* trackManager;   //!< The reference of the TrackManager that handles the course through the Level.
     75  Camera* localCamera;          //!< The current Camera
    7676  Skysphere* skySphere;         //!< The Environmental Heaven of orxonox \todo insert this to environment insted
    77   Light* light;                 //!< The Lights of the Level
     77  LightManager* lightMan;       //!< The Lights of the Level
    7878  Terrain* terrain;             //!< The Terrain of the World.
    7979
Note: See TracChangeset for help on using the changeset viewer.