Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/importer/md3/md3_bone_frame.h @ 10758

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

merged the bsp-model-stuff back here

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