Changeset 8371 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer
- Timestamp:
- Jun 14, 2006, 11:19:12 AM (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_bone_frame.h
r8359 r8371 44 44 float scale; //!< scale of the box 45 45 46 MD3Tag* 46 MD3Tag** tags; //!< arrays of tags size 47 47 48 48 MD3BoneFrameData* data; //!< reference md3 bone frames data -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8359 r8371 18 18 19 19 #include "md3_bone_frame.h" 20 #include "md3_tag.h" 20 21 21 22 … … 254 255 for( int i = 0; i < this->header->boneFrameNum; i++) 255 256 { 257 this->boneFrames[i]->tags = new MD3Tag*[this->header->tagNum]; 258 256 259 for( int j = 0; j < this->header->tagNum; j++) 257 260 { 258 259 } 260 261 262 263 this->boneFrames[i] = new MD3BoneFrame(i); 264 265 MD3BoneFrameData* md = new MD3BoneFrameData; 266 fread(md, 1, sizeof(MD3BoneFrameData), pFile); 261 this->boneFrames[i]->tags[j] = new MD3Tag(); 262 MD3TagData* md = new MD3TagData; 263 fread(md, 1, sizeof(MD3TagData), pFile); 264 } 267 265 } 268 266 269 return this->header->boneFrameNum * sizeof(MD3BoneFrameData);267 return this->header->boneFrameNum * this->header->tagNum * sizeof(MD3TagData); 270 268 } 271 269 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.cc
r8359 r8371 23 23 24 24 25 25 26 MD3Tag::MD3Tag() 26 27 { /* loadMesh(this, din) */ } … … 31 32 32 33 33 34 35 36 37 34 } 38 35
Note: See TracChangeset
for help on using the changeset viewer.