Changeset 4251 in orxonox.OLD for orxonox/branches/levelLoader/src/world_entities
- Timestamp:
- May 21, 2005, 11:17:18 PM (19 years ago)
- Location:
- orxonox/branches/levelLoader/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelLoader/src/world_entities/skybox.cc
r4250 r4251 49 49 this->preInit(); 50 50 51 this->load(root); 52 53 this->postInit(); 54 } 55 56 void SkyBox::load(TiXmlElement* root) 57 { 51 58 LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture); 52 53 this->postInit();54 59 } 55 60 … … 208 213 this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 0,0,0, 1,1,0, 3,2,0, 2,3,0); // right 209 214 this->skyModel->setMaterial(material[4]); 210 this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,0,5, 7,1,5, 5,2,5, 3,3, 6); // front215 this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,0,5, 7,1,5, 5,2,5, 3,3,5); // front 211 216 this->skyModel->setMaterial(material[5]); 212 217 this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 6,0,4, 0,1,4, 2,2,4, 4,3,4); // back -
orxonox/branches/levelLoader/src/world_entities/skybox.h
r4249 r4251 26 26 virtual ~SkyBox(); 27 27 28 void load(TiXmlElement* root); 29 28 30 void preInit(void); 29 31 void postInit(void); -
orxonox/branches/levelLoader/src/world_entities/world_entity.cc
r4240 r4251 26 26 27 27 /** 28 \brief standard constructor29 */ 30 WorldEntity::WorldEntity ()28 \brief Loads the WordEntity-specific Part of any derived Class 29 */ 30 WorldEntity::WorldEntity(TiXmlElement* root) 31 31 { 32 32 this->setClassName ("WorldEntity"); 33 this->model = NULL; 34 35 if (root) 36 this->load(root); 37 33 38 this->bDraw = true; 34 this->model = NULL; 35 // collisioncluster = NULL; 36 } 37 38 /** 39 \brief Loads the WordEntity-specific Part of any derived Class 40 */ 41 WorldEntity::WorldEntity(TiXmlElement* root) 42 { 43 this->setClassName ("WorldEntity"); 44 // Name Setup 39 } 40 41 void WorldEntity::load(TiXmlElement* root) 42 { 43 // name setup 45 44 LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName); 45 46 46 // Model Loading 47 this->model = NULL;48 47 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel); 49 50 this->bDraw = true;51 48 } 52 49 -
orxonox/branches/levelLoader/src/world_entities/world_entity.h
r4239 r4251 23 23 24 24 public: 25 WorldEntity (void); 26 WorldEntity(TiXmlElement* root); 25 WorldEntity(TiXmlElement* root = NULL); 27 26 virtual ~WorldEntity (); 28 27 28 void load(TiXmlElement* root); 29 29 void loadModel(const char* fileName); 30 30
Note: See TracChangeset
for help on using the changeset viewer.