Changeset 8416 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 14, 2006, 6:11:58 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8383 r8416 284 284 int MD3Data::readMeshTriangles(FILE* pFile, int fileOffset, int mesh) 285 285 { 286 // this->meshes[mesh]->triangles = new int[this->meshes[mesh]->header->triangleNum][3]; 286 // create the memomry to save the triangles 287 MD3Triangle* tri = new MD3Triangle[this->meshes[mesh]->header->triangleNum]; 288 fread(tri, 1, sizeof(MD3Triangle), pFile); 289 290 return this->meshes[mesh]->header->triangleNum * sizeof(MD3Triangle); 287 291 } 288 292 289 293 int MD3Data::readMeshTextures(FILE* pFile, int fileOffset, int mesh) 290 {} 294 { 295 return 0; 296 } 291 297 292 298 int MD3Data::readMeshTexVecs(FILE* pFile, int fileOffset, int mesh) 293 {} 299 { 300 return 0; 301 } 294 302 295 303 int MD3Data::readMeshVertices(FILE* pFile, int fileOffset, int mesh) 296 {} 297 298 } 299 300 301 302 303 304 305 304 { 305 return 0; 306 } 307 308 } 309 310 311 312 313 314 315 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.h
r8382 r8416 39 39 }; 40 40 41 42 typedef struct MD3Triangle { 43 int vertexOffset[3]; 44 }; 45 46 41 47 class MD3Mesh 42 48 { … … 50 56 51 57 //MD3Texture* textures; //!< array of textures of size textureNum 52 int**triangles; //!< indices into mesh frames and texture coord arrays58 MD3Triangle* triangles; //!< indices into mesh frames and texture coord arrays 53 59 float* textureCoords; //!< U/V textures coordinates of vertices 54 60 Vector meshFrames; //!< mesh frames
Note: See TracChangeset
for help on using the changeset viewer.