Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2005, 12:35:32 AM (20 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: cleaned out the unuseable texture loader and fixed also some minor issues

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  
    2727
    2828TestEntity::TestEntity () : WorldEntity()
    29 {
    30   this->textureArray = new unsigned int[100];
    31   memset(this->textureArray, 0, 100*sizeof(unsigned int));
    32  
     29
    3330  MD2Loader* md2loader = new MD2Loader();
    3431  this->model = new t3DModel;
     
    3633
    3734  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     }
    4735
    4836  this->material = new Material("Sky");
  • orxonox/branches/md2_loader/src/world_entities/test_entity.h

    r4158 r4159  
    2828  t3DModel* model;
    2929  MD2Model* md2Model;
    30 
    31   unsigned int* textureArray;
    3230  Material* material;
    3331
Note: See TracChangeset for help on using the changeset viewer.