Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/terrain.older/src/lib/graphics/importer/md3/md3_bone_frame.h

Last change on this file was 8724, checked in by bensch, 18 years ago

merged the bsp-model-stuff back here

File size: 1.3 KB
Line 
1/*!
2 * @file md3_bone_frame.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_BONE_FRAME_ANIMATION_H
9#define _MD3_BONE_FRAME_ANIMATION_H
10
11#include "vector.h"
12
13#include <string>
14
15namespace md3
16{
17
18typedef struct MD3BoneFrameData {
19  sVec3D  mins;
20  sVec3D  maxs;
21  sVec3D  position;
22  float   scale;
23  char    creator[16];
24};
25
26
27class MD3Tag;
28
29class MD3BoneFrame
30{
31  public:
32    /** create a MD3BoneFrame object with the data coming from the specified input stream */
33    MD3BoneFrame(int tagNum /*, DataInput din*/);
34    MD3BoneFrame(/*int tagNum*/);
35    virtual ~MD3BoneFrame();
36
37
38  public:
39    Vector              mins;              //!< lower extrema of the bounding box of this bone anumation frame
40    Vector              maxs;              //!< upper extrema of the bounding box of this bone anumation frame
41    Vector              position;          //!< coordinate origin within the bounding box
42
43    std::string         cratorName;        //!< the name of the creator
44    float               scale;             //!< scale of the box
45
46    MD3Tag**            tags;              //!< arrays of tags size
47
48    MD3BoneFrameData*   data;              //!< reference md3 bone frames data
49};
50
51}
52
53#endif /* _MD3_BONE_FRAME_ANIMATION_H */
Note: See TracBrowser for help on using the repository browser.