Changeset 4159 in orxonox.OLD for orxonox/branches/md2_loader/src/world_entities
- Timestamp:
- May 11, 2005, 12:35:32 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/world_entities/test_entity.cc
r4158 r4159 27 27 28 28 TestEntity::TestEntity () : WorldEntity() 29 { 30 this->textureArray = new unsigned int[100]; 31 memset(this->textureArray, 0, 100*sizeof(unsigned int)); 32 29 { 33 30 MD2Loader* md2loader = new MD2Loader(); 34 31 this->model = new t3DModel; … … 36 33 37 34 md2loader->importMD2(this->model, "../data/models/tris.md2", "../data/models/tris.pcx"); 38 39 for(int i = 0; i < this->model->numOfMaterials; i++)40 {41 if( strlen(this->model->materialList[i].strFile) > 0)42 {43 Helper::createTexture(textureArray, this->model->materialList[i].strFile, i);44 }45 this->model->materialList[i].texureId = i;46 }47 35 48 36 this->material = new Material("Sky"); -
orxonox/branches/md2_loader/src/world_entities/test_entity.h
r4158 r4159 28 28 t3DModel* model; 29 29 MD2Model* md2Model; 30 31 unsigned int* textureArray;32 30 Material* material; 33 31
Note: See TracChangeset
for help on using the changeset viewer.