Changeset 4078 in orxonox.OLD for orxonox/branches/md2_loader/src/lib/graphics
- Timestamp:
- May 6, 2005, 11:46:20 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/Makefile.in
r4063 r4078 42 42 subdir = src/lib/graphics/importer 43 43 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 44 $(srcdir)/Makefile.in TODO 45 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 46 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 54 54 PROGRAMS = $(bin_PROGRAMS) 55 55 am_importer_OBJECTS = framework.$(OBJEXT) windowHandler.$(OBJEXT) \ 56 model.$(OBJEXT) objModel.$(OBJEXT) primitive_model.$(OBJEXT) \ 57 array.$(OBJEXT) material.$(OBJEXT) texture.$(OBJEXT) \ 58 graphics_engine.$(OBJEXT) base_object.$(OBJEXT) \ 59 vector.$(OBJEXT) resource_manager.$(OBJEXT) \ 60 text_engine.$(OBJEXT) p_node.$(OBJEXT) null_parent.$(OBJEXT) 56 model.$(OBJEXT) objModel.$(OBJEXT) md2Model.$(OBJEXT) \ 57 primitive_model.$(OBJEXT) array.$(OBJEXT) material.$(OBJEXT) \ 58 texture.$(OBJEXT) graphics_engine.$(OBJEXT) \ 59 base_object.$(OBJEXT) vector.$(OBJEXT) \ 60 resource_manager.$(OBJEXT) text_engine.$(OBJEXT) \ 61 p_node.$(OBJEXT) null_parent.$(OBJEXT) 61 62 importer_OBJECTS = $(am_importer_OBJECTS) 62 63 importer_LDADD = $(LDADD) … … 68 69 @AMDEP_TRUE@ ./$(DEPDIR)/framework.Po \ 69 70 @AMDEP_TRUE@ ./$(DEPDIR)/graphics_engine.Po \ 70 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/m odel.Po \71 @AMDEP_TRUE@ ./$(DEPDIR)/ null_parent.Po ./$(DEPDIR)/objModel.Po \72 @AMDEP_TRUE@ ./$(DEPDIR)/ p_node.Po \71 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/md2Model.Po \ 72 @AMDEP_TRUE@ ./$(DEPDIR)/model.Po ./$(DEPDIR)/null_parent.Po \ 73 @AMDEP_TRUE@ ./$(DEPDIR)/objModel.Po ./$(DEPDIR)/p_node.Po \ 73 74 @AMDEP_TRUE@ ./$(DEPDIR)/primitive_model.Po \ 74 75 @AMDEP_TRUE@ ./$(DEPDIR)/resource_manager.Po \ … … 200 201 model.cc \ 201 202 objModel.cc \ 203 md2Model.cc \ 202 204 primitive_model.cc \ 203 205 array.cc \ … … 214 216 noinst_HEADERS = framework.h \ 215 217 windowHandler.h \ 218 abstract_model.h \ 216 219 model.h \ 217 220 objModel.h \ 221 md2Model.h \ 218 222 primitive_model.h \ 219 223 array.h \ … … 292 296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/graphics_engine.Po@am__quote@ 293 297 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@ 298 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md2Model.Po@am__quote@ 294 299 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/model.Po@am__quote@ 295 300 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_parent.Po@am__quote@ -
orxonox/branches/md2_loader/src/lib/graphics/importer/abstract_model.h
r4074 r4078 23 23 24 24 #include "stdincl.h" 25 #include "base_object.h" 26 25 27 26 28 … … 98 100 99 101 //! This class defines the basic components of a model 100 class AbstractModel {102 class AbstractModel : public BaseObject { 101 103 102 104 public: -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4077 r4078 16 16 17 17 #include "md2Model.h" 18 18 19 19 20 using namespace std; … … 50 51 /** 51 52 \brief standard deconstructor 52 53 53 creates a new model loader 54 54 */ … … 56 56 { 57 57 this->setClassName ("MD2Loader"); 58 // Here we initialize our structures to 0 59 memset(&m_Header, 0, sizeof(tMd2Header)); 60 // Set the pointers to null 61 m_pSkins=NULL; 62 m_pTexCoords=NULL; 63 m_pTriangles=NULL; 64 m_pFrames=NULL; 58 /* initialize all data to initial state */ 59 memset(&this->header, 0, sizeof(tMd2Header)); 60 this->pSkins = NULL; 61 this->pTexCoords = NULL; 62 this->pTriangles = NULL; 63 this->pFrames = NULL; 65 64 } 66 65 67 66 /** 68 67 \brief standard deconstructor 69 70 68 */ 71 69 MD2Loader::~MD2Loader() -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h
r4075 r4078 18 18 19 19 #include "abstract_model.h" 20 #include "base_object.h" 21 #include "stdincl.h" 20 22 21 23 … … 127 129 128 130 //! A class that handles all of the loading code 129 class MD2Loader {131 class MD2Loader : public BaseObject { 130 132 131 133 public: … … 142 144 void cleanUp(); 143 145 144 FILE * m_FilePointer;145 tMd2Header m_Header; //!< The header data146 tMd2Skin * m_pSkins; //!< The skin data147 tMd2TexCoord * m_pTexCoords; //!< The texture coordinates148 tMd2Face * m_pTriangles; //!< Face index information149 tMd2Frame * m_pFrames; //!< The frames of animation (vertices)146 FILE *pFile; 147 tMd2Header header; //!< The header data 148 tMd2Skin *pSkins; //!< The skin data 149 tMd2TexCoord *pTexCoords; //!< The texture coordinates 150 tMd2Face *pTriangles; //!< Face index information 151 tMd2Frame *pFrames; //!< The frames of animation (vertices) 150 152 }; 151 153
Note: See TracChangeset
for help on using the changeset viewer.