Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h @ 8353

Last change on this file since 8353 was 8353, checked in by patrick, 18 years ago

bsp: worldentities now are able to load md3 models. but md3 models are not yet implemented:D coming soon

File size: 1.7 KB
Line 
1/*!
2 * @file md3_model.h
3 *
4 * Code heavely inspired by: JAVA MD3 Model Viewer - A Java based Quake 3 model viewer
5 * Copyright (C) 1999 Erwin 'KLR8' Vervaet
6 */
7
8#ifndef _MD3_MODEL_H
9#define _MD3_MODEL_H
10
11#include <string>
12#include "model.h"
13
14
15class MD3BoneFrame;
16class MD3Mesh;
17
18
19namespace md3
20{
21
22class MD3Model : public Model
23{
24
25  public:
26    MD3Model(std::string filename, float scaling);
27    ~MD3Model();
28
29
30
31  private:
32    std::string         filename;          //!< the name of the file as recorded in the .md3 file
33    std::string         loadFilename;      //!< filename of the actual file from which data was loaded
34
35    int                 boneFrameNum;      //!< number of anumation key fames in the models
36    int                 tagNum;            //!< number of tags
37    int                 meshNum;           //!< number of meshes
38
39    int                 maxTextureNum;     //!< maximum number of unique used in an md3 file
40    int                 boneFrameStart;    //!< starting position of bone frame data structures
41    int                 tagStart;          //!< starting position of tag-structures
42
43    int                 meshStart;         //!< starting position of mesh structures
44
45    int                 fileSize;          //!< file size
46
47
48    MD3BoneFrame*       boneFrames;        //!< array of bone frames, contains the metadata (bounding box, tags,...) for each frame
49    MD3Mesh*            meshes;            //!< array of meshes in the model. each containing the mesh for each of the animation
50
51    int                 parentTagIndex;    //!< tag index
52    MD3Model*           parent;            //!< reference to the MD3Model
53};
54}
55
56#endif /* _MD3_MODEL_H */
Note: See TracBrowser for help on using the repository browser.