Changeset 3455 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Mar 3, 2005, 7:57:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r3449 r3455 29 29 #include "skysphere.h" 30 30 #include "light.h" 31 #include "sfont/cone3dfont.h" 31 32 32 33 using namespace std; … … 200 201 void World::load() 201 202 { 202 // LIGHT initialisation203 light = Light::getInstance();204 light->addLight(0);205 light->setAttenuation(QUADRATIC, 1.0);206 light->setPosition(20.0, 10.0, 20.0);207 light->setDiffuseColor(1,1,1);208 // light->addLight(1);209 // light->setPosition(20, 10, -20);210 // light->setDiffuseColor(0,0,0);211 light->debug();212 213 203 // BezierCurve* tmpCurve = new BezierCurve(); 214 204 if(this->debugWorldNr != -1) 215 205 { 206 // initializing Font 207 testFont = new Cone3DFont(); 208 testFont->BuildFont("../data/pictures/font.tga"); 209 210 // initializing the TrackManager 216 211 trackManager = TrackManager::getInstance(); 217 212 trackManager->addPoint(Vector(0,-5,0)); … … 583 578 */ 584 579 glEndList(); 580 // LIGHT initialisation 581 light = Light::getInstance(); 582 light->addLight(0); 583 light->setAttenuation(QUADRATIC, 1.0); 584 light->setAttenuation(CONSTANT, 2.0); 585 light->setAttenuation(QUADRATIC, 1.0); 586 light->setPosition(10.0, 1.0, 0.0); 587 light->setDiffuseColor(1,1,1); 588 // light->addLight(1); 589 // light->setPosition(20, 10, -20); 590 // light->setDiffuseColor(0,0,0); 591 light->debug(); 592 593 585 594 } 586 595 … … 648 657 // draw debug coord system 649 658 glCallList (objectList); 650 651 659 //! \todo skysphere is a WorldEntity and should be inside of the world-entity-list. 652 660 skySphere->draw(); 661 662 testFont->PrintText(10, 10, 1, "orxonox_" PACKAGE_VERSION); 653 663 654 664 }
Note: See TracChangeset
for help on using the changeset viewer.