Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8351 in orxonox.OLD for branches


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

bsp: md3 more source files

Location:
branches/bsp_model/src/lib/graphics/importer
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/Makefile.am

    r8346 r8351  
    2929                           md3/md3_bone_frame.cc \
    3030                           md3/md3_mesh.cc \
    31                            md3/md3_data.cc
     31                           md3/md3_data.cc \
     32                           md3/md3_tag.cc
    3233
    3334
     
    6566                md3/md3_bone_frame.h \
    6667                md3/md3_mesh.h \
    67                 md3/md3_data.h
     68                md3/md3_data.h \
     69                md3/md3_tag.h
    6870
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_animation.cc

    r8348 r8351  
    1919
    2020
    21 using namespace std;
     21namespace md3
     22{
     23
     24
     25
     26  /**
     27   * create an empty MD3Animation object
     28   */
     29  MD3Animation::MD3Animation()
     30  {
     31    this->init();
     32  }
     33
     34
     35  /**
     36   * create a new MD3 Anumation object and initialize it with the data on the given line
     37   * @param line: the line to read from
     38   */
     39  MD3Animation::MD3Animation(std::string line)
     40  {
     41    this->init();
     42    // loadAnimation()
     43  }
     44
     45
     46  /**
     47   * deconstructor
     48   */
     49  MD3Animation::~MD3Animation()
     50  {}
     51
     52
     53  void MD3Animation::init()
     54  {
     55    this->first = 0;
     56    this->numFrames = 0;
     57    this->fps = 0;
     58  }
     59
     60
     61
     62
     63}
     64
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_animation.h

    r8348 r8351  
    2323
    2424  public:
    25     /** create an empty MD3Animation object */
    26     MD3Animation() : first(0), numFrames(0), fps(0) {}
    27     /** create a new MD3 Anumation object and initialize it with the data on the given line @param line: the line to read from*/
    28     MD3Animation(std::string line) : first(0), numFrames(0), fps(0) { /* loadAnimation(); */ }
     25    MD3Animation();
     26    MD3Animation(std::string line);
     27    virtual ~MD3Animation();
     28
     29    void init();
    2930
    3031    std::string toString() { return std::string("Name: " + this->name); }
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc

    r8348 r8351  
    1818
    1919
     20namespace md3
     21{
    2022
    2123/********************************************************************************
     
    212214void MD3Data::readMeshes()
    213215{}
     216
     217}
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_data.h

    r8348 r8351  
    4242#define kAnimationSpeed                 12.0f                                    //!< animation speed
    4343
     44
     45namespace md3
     46{
    4447
    4548//! This holds the header information that is read in at the beginning of the file: id software definition
     
    109112
    110113
    111 
     114}
    112115
    113116
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.cc

    r8348 r8351  
    1616
    1717#include "md3_mesh.h"
     18
     19
     20namespace md3
     21{
     22
     23/**
     24 *  md3 mesh constructor
     25 */
     26MD3Mesh::MD3Mesh(FILE *pFile, int dataOffset)
     27{
     28}
     29
     30
     31/**
     32 * md3 mesh deconstructor
     33 */
     34MD3Mesh::~MD3Mesh()
     35{}
     36
     37}
     38
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.h

    r8348 r8351  
    1616#include "vector.h"
    1717
     18
     19namespace md3
     20{
     21
    1822class MD3Mesh
    1923{
    2024  public:
    21     MD3Mesh() { /* loadMesh(this, din) */ }
     25    MD3Mesh(FILE *pFile, int dataOffset);
    2226    virtual ~MD3Mesh();
    23 
    24 //     FILE *pFile;                            //file stream
    2527
    2628
     
    4850};
    4951
     52}
    5053
    5154#endif /* _MD3_MESH_H */
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8348 r8351  
    1919
    2020
    21 using namespace std;
     21namespace md3
     22{
     23
     24  /**
     25   * md3 model
     26   */
     27  MD3Model::MD3Model(FILE *pFile, int dataOffset)
     28  {}
     29
     30
     31
     32  MD3Model::~MD3Model()
     33  {}
     34
     35
     36}
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h

    r8343 r8351  
    1616
    1717
     18namespace md3
     19{
     20
    1821class MD3Model
    1922{
    2023
    2124  public:
    22     MD3Model();
     25    MD3Model(FILE *pFile, int dataOffset);
    2326    ~MD3Model();
    2427
     
    4851    MD3Model*           parent;            //!< reference to the MD3Model
    4952};
    50 
     53}
    5154
    5255#endif /* _MD3_MODEL_H */
Note: See TracChangeset for help on using the changeset viewer.