Changeset 8348 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer
- Timestamp:
- Jun 13, 2006, 5:33:14 PM (19 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_animation.cc
r8342 r8348 14 14 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_IMPORTER 16 17 #include "md3_animation.h" 18 19 20 21 using namespace std; -
branches/bsp_model/src/lib/graphics/importer/md3/md3_animation.h
r8342 r8348 12 12 13 13 14 typedef struct An uimationType14 typedef struct AnimationType 15 15 {}; 16 16 … … 28 28 MD3Animation(std::string line) : first(0), numFrames(0), fps(0) { /* loadAnimation(); */ } 29 29 30 std::string toString() { return String("Type: " + this->type + " - name: " + this->name + " - fps: " + fps); }30 std::string toString() { return std::string("Name: " + this->name); } 31 31 32 32 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_bone_frame.cc
r8343 r8348 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_IMPORTER 16 16 17 #include "md3_bone_frame.h" 18 19 20 21 using namespace std; -
branches/bsp_model/src/lib/graphics/importer/md3/md3_bone_frame.h
r8342 r8348 6 6 */ 7 7 8 #ifndef _MD3_ BONE_FRAME_H9 #define _MD3_ BONE_FRAME_H8 #ifndef _MD3_ANIMATION_H 9 #define _MD3_ANIMATION_H 10 10 11 11 #include "vector.h" 12 13 #include <string> 14 15 16 class MD3Tag; 12 17 13 18 … … 17 22 /** create a MD3BoneFrame object with the data coming from the specified input stream */ 18 23 MD3BoneFrame(int tagNum /*, DataInput din*/) { /* loadBoneFrame(this, din) */ } 19 MD3BoneFrame( int tagNum) { /* this->tags = new MD3Tag[tagNum] */ }20 virtual ~MD3Bon deFrame();24 MD3BoneFrame(/*int tagNum*/) { /* this->tags = new MD3Tag[tagNum] */ } 25 virtual ~MD3BoneFrame(); 21 26 22 27 … … 29 34 float scale; //!< scale of the box 30 35 31 //MD3Tag tags[];//!< arrays of tags size36 MD3Tag* tags; //!< arrays of tags size 32 37 33 38 … … 35 40 36 41 37 #endif /* _MD3_ BONE_FRAME_H */42 #endif /* _MD3_ANIMATION_H */ -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8347 r8348 103 103 } 104 104 105 #if 0 105 106 this->fileName =fileName; 106 107 /* got the data: map it to locals */ … … 152 153 } 153 154 PRINTF(4)("Finished loading the md2 file\n"); 155 #endif 154 156 155 157 delete [] buffer; -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.h
r8346 r8348 16 16 */ 17 17 18 #ifndef _MD 2MODEL_H18 #ifndef _MD3_DATA_H 19 19 #define _MD3_DATA_H 20 20 … … 24 24 #include "material.h" 25 25 #include "md_model_structure.h" 26 26 27 27 28 //! These are the needed defines for the max values when loading .MD2 files -
branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.cc
r8343 r8348 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_IMPORTER 16 16 17 #include "md3_mesh.h" -
branches/bsp_model/src/lib/graphics/importer/md3/md3_mesh.h
r8343 r8348 9 9 #define _MD3_MESH_H 10 10 11 12 #include <string> 13 14 #include "md_model_structure.h" 15 16 #include "vector.h" 17 11 18 class MD3Mesh 12 19 { … … 14 21 MD3Mesh() { /* loadMesh(this, din) */ } 15 22 virtual ~MD3Mesh(); 23 24 // FILE *pFile; //file stream 16 25 17 26 … … 36 45 int* triangles; //!< indices into mesh frames and texture coord arrays 37 46 float* textureCoords; //!< U/V textures coordinates of vertices 38 sVec3D*meshFrames; //!< mesh frames47 Vector meshFrames; //!< mesh frames 39 48 }; 40 49 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8346 r8348 16 16 17 17 #include "md3_model.h" 18 #include "material.h"19 18 20 #include "debug.h"21 #include "util/loading/resource_manager.h"22 19 23 20 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.cc
r8347 r8348 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_IMPORTER 16 16 17 #include "md3_tag.h" 18 19 20 21 using namespace std; 22 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_tag.h
r8347 r8348 11 11 #include <string> 12 12 13 #include "vector.h" 13 14 14 15 class MD3Tag
Note: See TracChangeset
for help on using the changeset viewer.