Changeset 8359 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 14, 2006, 2:49:29 AM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_bone_frame.h
r8358 r8359 46 46 MD3Tag* tags; //!< arrays of tags size 47 47 48 MD3BoneFrameData* data; 48 MD3BoneFrameData* data; //!< reference md3 bone frames data 49 49 }; 50 50 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8358 r8359 250 250 int MD3Data::readTags(FILE* pFile, int fileOffset) 251 251 { 252 // this->boneFrames = new MD3BoneFrame*[this->header->boneFrameNum]; 253 254 for( int i = 0; i < this->header->boneFrameNum; i++) 255 { 256 for( int j = 0; j < this->header->tagNum; j++) 257 { 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); 267 } 268 269 return this->header->boneFrameNum * sizeof(MD3BoneFrameData); 270 } 271 272 273 /** 274 * read meshes 275 */ 276 int MD3Data::readMeshes(FILE* pFile, int fileOffset) 277 { 252 278 return 0; 253 279 } 254 280 255 256 /** 257 * read meshes 258 */ 259 int MD3Data::readMeshes(FILE* pFile, int fileOffset) 260 { 261 return 0; 262 } 263 264 } 265 281 } 282 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.cc
r8348 r8359 19 19 20 20 21 using namespace std; 21 namespace md3 22 { 22 23 24 25 MD3Tag::MD3Tag() 26 { /* loadMesh(this, din) */ } 27 28 29 MD3Tag::~MD3Tag() 30 {} 31 32 33 34 35 36 37 } 38 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.h
r8348 r8359 13 13 #include "vector.h" 14 14 15 namespace md3 16 { 17 18 typedef struct MD3TagData 19 { 20 sVec3D position; 21 float matrix[3][3]; 22 }; 23 24 15 25 class MD3Tag 16 26 { 17 27 public: 18 MD3Tag() { /* loadMesh(this, din) */ }28 MD3Tag(); 19 29 virtual ~MD3Tag(); 20 30 … … 25 35 float matrix[3][3]; //!< 3x3 rotation matrix 26 36 37 MD3TagData* data; //!< data reference 27 38 }; 28 39 40 } 29 41 30 42 #endif /* _MD3_TAG_H */
Note: See TracChangeset
for help on using the changeset viewer.