Changeset 6008 in orxonox.OLD for trunk/src/lib/graphics/importer/model.cc
- Timestamp:
- Dec 10, 2005, 3:52:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.cc
r5790 r6008 158 158 this->triangleCount = 0; 159 159 this->triangles = NULL; 160 this->pModelInfo = NULL;161 160 162 161 this->scaleFactor = 1; … … 205 204 delete (*modMat); 206 205 } 207 delete this->pModelInfo;208 206 } 209 207 … … 223 221 224 222 /* 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(); 234 231 235 232 this->finalized = true;
Note: See TracChangeset
for help on using the changeset viewer.