Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8371 in orxonox.OLD for branches/bsp_model


Ignore:
Timestamp:
Jun 14, 2006, 11:19:12 AM (18 years ago)
Author:
patrick
Message:

bsp: md3 tag data gets read

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  
    4444    float               scale;             //!< scale of the box
    4545
    46     MD3Tag*             tags;              //!< arrays of tags size
     46    MD3Tag**            tags;              //!< arrays of tags size
    4747
    4848    MD3BoneFrameData*   data;              //!< reference md3 bone frames data
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc

    r8359 r8371  
    1818
    1919#include "md3_bone_frame.h"
     20#include "md3_tag.h"
    2021
    2122
     
    254255  for( int i = 0; i < this->header->boneFrameNum; i++)
    255256  {
     257    this->boneFrames[i]->tags = new MD3Tag*[this->header->tagNum];
     258
    256259    for( int j = 0; j < this->header->tagNum; j++)
    257260    {
    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    }
    267265  }
    268266
    269   return this->header->boneFrameNum * sizeof(MD3BoneFrameData);
     267  return this->header->boneFrameNum * this->header->tagNum * sizeof(MD3TagData);
    270268}
    271269
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.cc

    r8359 r8371  
    2323
    2424
     25
    2526  MD3Tag::MD3Tag()
    2627  { /* loadMesh(this, din) */ }
     
    3132
    3233
    33 
    34 
    35 
    36 
    3734}
    3835
Note: See TracChangeset for help on using the changeset viewer.