Changeset 8382 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 14, 2006, 12:54:52 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8375 r8382 257 257 if( localFileOffset == this->meshes[i]->header->triangleStart && !bTriangles) 258 258 { 259 localFileOffset += this->readMeshTriangles(pFile, localFileOffset );259 localFileOffset += this->readMeshTriangles(pFile, localFileOffset, i); 260 260 bTriangles = true; 261 261 } 262 262 else if( localFileOffset == this->meshes[i]->header->textureStart && !bTextures) 263 263 { 264 fileOffset += this->readMeshTextures(pFile, localFileOffset );264 fileOffset += this->readMeshTextures(pFile, localFileOffset, i); 265 265 bTextures = true; 266 266 } 267 267 else if( localFileOffset == this->meshes[i]->header->texVecStart && !bTexVecs) 268 268 { 269 localFileOffset += this->readMeshTexVecs(pFile, localFileOffset );269 localFileOffset += this->readMeshTexVecs(pFile, localFileOffset, i); 270 270 bTexVecs = true; 271 271 } 272 272 else if( fileOffset == this->meshes[i]->header->vertexStart && !bVertices) 273 273 { 274 localFileOffset += this->readMeshVertices(pFile, localFileOffset );274 localFileOffset += this->readMeshVertices(pFile, localFileOffset, i); 275 275 bVertices = true; 276 276 } … … 280 280 } 281 281 282 } 283 282 283 284 int MD3Data::readMeshTriangles(FILE* pFile, int fileOffset, int mesh) 285 { 286 this->meshes[mesh]->triangles = new int[this->meshes[mesh]->header->triangleNum][3]; 287 } 288 289 int MD3Data::readMeshTextures(FILE* pFile, int fileOffset, int mesh) 290 {} 291 292 int MD3Data::readMeshTexVecs(FILE* pFile, int fileOffset, int mesh) 293 {} 294 295 int MD3Data::readMeshVertices(FILE* pFile, int fileOffset, int mesh) 296 {} 297 298 } 299 300 301 302 303 304 305 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.h
r8375 r8382 89 89 90 90 91 int readMeshTriangles(FILE* pFile, int fileOffset );92 int readMeshTextures(FILE* pFile, int fileOffset );93 int readMeshTexVecs(FILE* pFile, int fileOffset );94 int readMeshVertices(FILE* pFile, int fileOffset );91 int readMeshTriangles(FILE* pFile, int fileOffset, int mesh); 92 int readMeshTextures(FILE* pFile, int fileOffset, int mesh); 93 int readMeshTexVecs(FILE* pFile, int fileOffset, int mesh); 94 int readMeshVertices(FILE* pFile, int fileOffset, int mesh); 95 95 96 96 public: -
branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.h
r8374 r8382 50 50 51 51 //MD3Texture* textures; //!< array of textures of size textureNum 52 int* 52 int** triangles; //!< indices into mesh frames and texture coord arrays 53 53 float* textureCoords; //!< U/V textures coordinates of vertices 54 54 Vector meshFrames; //!< mesh frames
Note: See TracChangeset
for help on using the changeset viewer.