Last change
on this file since 8645 was
8490,
checked in by patrick, 18 years ago
|
merged the bsp branche back to trunk
|
File size:
1019 bytes
|
Rev | Line | |
---|
[8347] | 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 | |
---|
[8348] | 13 | #include "vector.h" |
---|
[8347] | 14 | |
---|
[8359] | 15 | namespace md3 |
---|
| 16 | { |
---|
| 17 | |
---|
| 18 | typedef struct MD3TagData |
---|
| 19 | { |
---|
[8432] | 20 | char name[64]; //!< name of the tag |
---|
| 21 | sVec3D position; //!< position of the tag |
---|
| 22 | float matrix[3][3]; //!< matrix of the rotation |
---|
[8359] | 23 | }; |
---|
| 24 | |
---|
| 25 | |
---|
[8347] | 26 | class MD3Tag |
---|
| 27 | { |
---|
| 28 | public: |
---|
[8359] | 29 | MD3Tag(); |
---|
[8347] | 30 | virtual ~MD3Tag(); |
---|
| 31 | |
---|
| 32 | |
---|
[8372] | 33 | public: |
---|
[8347] | 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 | |
---|
[8359] | 38 | MD3TagData* data; //!< data reference |
---|
[8347] | 39 | }; |
---|
| 40 | |
---|
[8359] | 41 | } |
---|
[8347] | 42 | |
---|
| 43 | #endif /* _MD3_TAG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.