Last change
on this file since 8697 was
8490,
checked in by patrick, 18 years ago
|
merged the bsp branche back to trunk
|
File size:
1019 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file md3_mesh.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_TAG_H |
---|
9 | #define _MD3_TAG_H |
---|
10 | |
---|
11 | #include <string> |
---|
12 | |
---|
13 | #include "vector.h" |
---|
14 | |
---|
15 | namespace md3 |
---|
16 | { |
---|
17 | |
---|
18 | typedef struct MD3TagData |
---|
19 | { |
---|
20 | char name[64]; //!< name of the tag |
---|
21 | sVec3D position; //!< position of the tag |
---|
22 | float matrix[3][3]; //!< matrix of the rotation |
---|
23 | }; |
---|
24 | |
---|
25 | |
---|
26 | class MD3Tag |
---|
27 | { |
---|
28 | public: |
---|
29 | MD3Tag(); |
---|
30 | virtual ~MD3Tag(); |
---|
31 | |
---|
32 | |
---|
33 | public: |
---|
34 | std::string name; //!< name of tag as its usualy called in the md3 file |
---|
35 | Vector position; //!< the position of the tag reltive to the models containing that tag |
---|
36 | float matrix[3][3]; //!< 3x3 rotation matrix |
---|
37 | |
---|
38 | MD3TagData* data; //!< data reference |
---|
39 | }; |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | #endif /* _MD3_TAG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.