Changeset 4459 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/md2Model.h
- Timestamp:
- Jun 2, 2005, 12:14:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/md2Model.h
r4282 r4459 25 25 26 26 //! These are the needed defines for the max values when loading .MD2 files 27 #define MD2_IDENT (('2'<<24) + ('P'<<16) + ('D'<<8) + 'I') 28 #define MD2_VERSION 8 29 #define MD2_MAX_TRIANGLES 4096 30 #define MD2_MAX_VERTICES 2048 31 #define MD2_MAX_TEXCOORDS 2048 32 #define MD2_MAX_FRAMES 512 33 #define MD2_MAX_SKINS 32 34 #define MD2_MAX_FRAMESIZE (MD2_MAX_VERTICES * 4 + 128) 27 #define MD2_IDENT (('2'<<24) + ('P'<<16) + ('D'<<8) + 'I') //!< the md2 identifier tag in the bin file 28 #define MD2_VERSION 8 //!< the md2 version in the header 29 #define MD2_MAX_TRIANGLES 4096 //!< maximal triangles count 30 #define MD2_MAX_VERTICES 2048 //!< maximal vertices count 31 #define MD2_MAX_TEXCOORDS 2048 //!< maximal tex coordinates 32 #define MD2_MAX_FRAMES 512 //!< maximal frames 33 #define MD2_MAX_SKINS 32 //!< maximal skins 34 #define MD2_MAX_FRAMESIZE (MD2_MAX_VERTICES * 4 + 128) //!< maximal framesize 35 35 36 #define NUM_VERTEX_NORMALS 162 36 #define NUM_VERTEX_NORMALS 162 //!< 37 37 #define SHADEDOT_QUANT 16 38 38 … … 66 66 67 67 68 68 //! animation names enumeration 69 69 typedef enum 70 70 { … … 105 105 { 106 106 public: 107 MD2Data( );107 MD2Data(const char* modelFileName, const char* skinFileName); 108 108 virtual ~MD2Data(); 109 109 110 private: 110 111 bool loadModel(const char* fileName); 111 bool loadSkin(const char* fileName );112 bool loadSkin(const char* fileName = NULL); 112 113 114 public: 113 115 int numFrames; 114 116 int numVertices; … … 133 135 134 136 public: 135 MD2Model( );137 MD2Model(const char* modelFileName, const char* skinFileName = NULL); 136 138 virtual ~MD2Model(); 137 138 bool loadModel(const char* filename); 139 bool loadSkin(const char* filename); 140 139 141 140 void drawFrame(int frame); 142 141 void draw();
Note: See TracChangeset
for help on using the changeset viewer.