Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6008 in orxonox.OLD for trunk/src/lib/graphics/importer/model.cc


Ignore:
Timestamp:
Dec 10, 2005, 3:52:33 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some more functionality in the abstractModel class

File:
1 edited

Legend:

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

    r5790 r6008  
    158158  this->triangleCount = 0;
    159159  this->triangles = NULL;
    160   this->pModelInfo = NULL;
    161160
    162161  this->scaleFactor = 1;
     
    205204    delete (*modMat);
    206205  }
    207   delete this->pModelInfo;
    208206}
    209207
     
    223221
    224222  /* load the ModelInfo */
    225   this->pModelInfo = new modelInfo;
    226   this->pModelInfo->numVertices = this->vertexCount;
    227   this->pModelInfo->pVertices = this->vertices->getArray();
    228   this->pModelInfo->numTriangles = this->triangleCount;
    229   this->pModelInfo->pTriangles = this->triangles;
    230   this->pModelInfo->numNormals = this->normalCount;
    231   this->pModelInfo->pNormals = this->normals->getArray();
    232   this->pModelInfo->numTexCoor = this->vTexture->getCount();
    233   this->pModelInfo->pTexCoor = this->vTexture->getArray();
     223  this->pModelInfo.numVertices = this->vertexCount;
     224  this->pModelInfo.pVertices = this->vertices->getArray();
     225  this->pModelInfo.numTriangles = this->triangleCount;
     226  this->pModelInfo.pTriangles = this->triangles;
     227  this->pModelInfo.numNormals = this->normalCount;
     228  this->pModelInfo.pNormals = this->normals->getArray();
     229  this->pModelInfo.numTexCoor = this->vTexture->getCount();
     230  this->pModelInfo.pTexCoor = this->vTexture->getArray();
    234231
    235232  this->finalized = true;
Note: See TracChangeset for help on using the changeset viewer.