Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2006, 2:49:29 AM (18 years ago)
Author:
patrick
Message:

bsp: started reading in the data tagas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc

    r8358 r8359  
    250250int MD3Data::readTags(FILE* pFile, int fileOffset)
    251251{
     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 */
     276int MD3Data::readMeshes(FILE* pFile, int fileOffset)
     277{
    252278  return 0;
    253279}
    254280
    255 
    256 /**
    257  * read meshes
    258  */
    259 int MD3Data::readMeshes(FILE* pFile, int fileOffset)
    260 {
    261   return 0;
    262 }
    263 
    264 }
    265 
     281}
     282
Note: See TracChangeset for help on using the changeset viewer.