Changeset 8358 in orxonox.OLD for branches/bsp_model/src/lib
- Timestamp:
- Jun 14, 2006, 2:41:35 AM (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_bone_frame.h
r8357 r8358 16 16 { 17 17 18 typedef struct MD3BoneFrameData { 19 sVec3D mins; 20 sVec3D maxs; 21 sVec3D position; 22 float scale; 23 char creator[16]; 24 }; 25 26 18 27 class MD3Tag; 19 28 … … 27 36 28 37 29 p rivate:30 Vector mins; //!< lower extrema of the bounding box of this bone anumation frame31 Vector maxs; //!< upper extrema of the bounding box of this bone anumation frame32 Vector position; //!< coordinate origin within the bounding box38 public: 39 Vector mins; //!< lower extrema of the bounding box of this bone anumation frame 40 Vector maxs; //!< upper extrema of the bounding box of this bone anumation frame 41 Vector position; //!< coordinate origin within the bounding box 33 42 34 std::string cratorName; //!< the name of the creator35 float scale; //!< scale of the box43 std::string cratorName; //!< the name of the creator 44 float scale; //!< scale of the box 36 45 37 MD3Tag* tags; //!< arrays of tags size46 MD3Tag* tags; //!< arrays of tags size 38 47 39 48 MD3BoneFrameData* data; 40 49 }; 41 50 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8357 r8358 222 222 printf("fileSize: %i\n", this->header->fileSize); 223 223 224 225 224 return sizeof(MD3Header); 226 225 } … … 235 234 236 235 for( int i = 0; i < this->header->boneFrameNum; i++) 236 { 237 237 this->boneFrames[i] = new MD3BoneFrame(i); 238 238 239 MD3BoneFrameData* md = new MD3BoneFrameData; 240 fread(md, 1, sizeof(MD3BoneFrameData), pFile); 241 } 242 243 return this->header->boneFrameNum * sizeof(MD3BoneFrameData); 244 } 245 246 247 /** 248 * read the tags 249 */ 250 int MD3Data::readTags(FILE* pFile, int fileOffset) 251 { 239 252 return 0; 240 253 } … … 242 255 243 256 /** 244 * read the tags245 */ 246 int MD3Data::read Tags(FILE* pFile, int fileOffset)257 * read meshes 258 */ 259 int MD3Data::readMeshes(FILE* pFile, int fileOffset) 247 260 { 248 261 return 0; 249 262 } 250 263 251 252 /** 253 * read meshes 254 */ 255 int MD3Data::readMeshes(FILE* pFile, int fileOffset) 256 { 257 return 0; 258 } 259 260 } 261 264 } 265
Note: See TracChangeset
for help on using the changeset viewer.