- Timestamp:
- Apr 8, 2005, 7:48:05 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3752 r3763 329 329 this->skySphere->setName("SkySphere"); 330 330 this->localCamera->addChild(this->skySphere); 331 this->s kySphere->setMode(PNODE_MOVEMENT);331 this->spawn(this->skySphere); 332 332 333 333 /*monitor progress*/ … … 392 392 skySphere = new Skysphere("../data/pictures/sky-replace.jpg"); 393 393 this->localPlayer->addChild(this->skySphere); 394 394 this->spawn(this->skySphere); 395 395 Vector* es = new Vector (20, 0, 0); 396 396 Quaternion* qs = new Quaternion (); … … 437 437 this->skySphere = new Skysphere("../data/pictures/sky-replace.jpg"); 438 438 this->skySphere->setName("SkySphere"); 439 this->spawn(this->skySphere); 439 440 this->localCamera->addChild(this->skySphere); 440 441 this->skySphere->setMode(PNODE_MOVEMENT); 441 442 442 /*monitor progress*/ 443 443 this->glmis->step(); … … 459 459 thirdNode->setRelCoor(new Vector(2.0, 0.0, 0.0)); 460 460 this->spawn(thirdNode); 461 462 461 463 462 … … 740 739 741 740 glCallList (objectList); 742 //! \todo skysphere is a WorldEntity and should be inside of the world-entity-list.743 skySphere->draw();744 741 745 742 testFont->printText(0, 0, 1, "orxonox_" PACKAGE_VERSION); -
orxonox/trunk/src/world_entities/skysphere.cc
r3608 r3763 38 38 39 39 /** 40 \brief Standart Constructor41 */42 Skysphere::Skysphere()43 {44 this->initialize("../data/pictures/sky-replace.jpg");45 }46 47 48 /**49 40 \brief Constructs a SkySphere and takes fileName as a map. 50 41 \param fileName the file to take as input for the skysphere … … 52 43 Skysphere::Skysphere(char* fileName) 53 44 { 54 this->initialize(fileName); 45 if (fileName == NULL) 46 this->initialize("../data/pictures/sky-replace.jpg"); 47 else 48 this->initialize(fileName); 55 49 } 56 50 … … 74 68 PRINTF(1)("initializing the Skysphere with Material %s.\n", fileName); 75 69 this->sphereObj = gluNewQuadric(); 70 this->setMode(PNODE_MOVEMENT); 71 76 72 gluQuadricTexture(this->sphereObj, GL_TRUE); 77 73 this->setRadius(1900.0); -
orxonox/trunk/src/world_entities/skysphere.h
r3608 r3763 25 25 26 26 public: 27 Skysphere(); 28 Skysphere(char* fileName); 27 Skysphere(char* fileName = NULL); 29 28 virtual ~Skysphere(); 30 29 void destroy();
Note: See TracChangeset
for help on using the changeset viewer.