Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 7, 2005, 11:17:56 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: introduced the modelInfo struct which contains refereces to all data a model needs, this will serve as an interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/model.cc

    r4803 r4804  
    150150  this->triangleCount = 0;
    151151  this->triangles = NULL;
     152  this->pModelInfo = NULL;
    152153
    153154  this->scaleFactor = 1;
     
    212213    //this->deleteArrays();
    213214  this->cleanup();
     215
     216  /* load the ModelInfo */
     217  this->pModelInfo = new modelInfo;
     218  this->pModelInfo->numVertices = this->vertexCount;
     219  this->pModelInfo->pVertices = this->vertices->getArray();
     220  this->pModelInfo->numTriangles = this->triangleCount;
     221  this->pModelInfo->pTriangles = this->triangles;
     222  this->pModelInfo->numNormals = this->normalCount;
     223  this->pModelInfo->pNormals = this->normals->getArray();
     224  this->pModelInfo->numTexCoor = this->vTexture->getCount();
     225  this->pModelInfo->pTexCoor = this->vTexture->getArray();
    214226
    215227  this->finalized = true;
Note: See TracChangeset for help on using the changeset viewer.