Changeset 4804 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/model.cc
- Timestamp:
- Jul 7, 2005, 11:17:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r4803 r4804 150 150 this->triangleCount = 0; 151 151 this->triangles = NULL; 152 this->pModelInfo = NULL; 152 153 153 154 this->scaleFactor = 1; … … 212 213 //this->deleteArrays(); 213 214 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(); 214 226 215 227 this->finalized = true;
Note: See TracChangeset
for help on using the changeset viewer.