Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8359 in orxonox.OLD


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

bsp: started reading in the data tagas

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  
    4646    MD3Tag*             tags;              //!< arrays of tags size
    4747
    48     MD3BoneFrameData*   data;
     48    MD3BoneFrameData*   data;              //!< reference md3 bone frames data
    4949};
    5050
  • 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
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.cc

    r8348 r8359  
    1919
    2020
    21 using namespace std;
     21namespace md3
     22{
    2223
     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  
    1313#include "vector.h"
    1414
     15namespace md3
     16{
     17
     18typedef struct MD3TagData
     19{
     20  sVec3D     position;
     21  float      matrix[3][3];
     22};
     23
     24
    1525class MD3Tag
    1626{
    1727  public:
    18     MD3Tag() { /* loadMesh(this, din) */ }
     28    MD3Tag();
    1929    virtual ~MD3Tag();
    2030
     
    2535    float                     matrix[3][3];           //!< 3x3 rotation matrix
    2636
     37    MD3TagData*               data;                   //!< data reference
    2738};
    2839
     40}
    2941
    3042#endif /* _MD3_TAG_H */
Note: See TracChangeset for help on using the changeset viewer.