Changeset 3763 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Apr 8, 2005, 7:48:05 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.