Changeset 4078 in orxonox.OLD for orxonox/branches
- Timestamp:
- May 6, 2005, 11:46:20 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/Makefile.in
r4063 r4078 38 38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 39 39 $(srcdir)/doc/documentation.am $(top_srcdir)/configure AUTHORS \ 40 COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp\41 install-sh missing mkinstalldirs40 COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \ 41 depcomp install-sh missing mkinstalldirs 42 42 subdir = . 43 43 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -
orxonox/branches/md2_loader/src/Makefile.in
r4063 r4078 83 83 data_tank.$(OBJEXT) graphics_engine.$(OBJEXT) light.$(OBJEXT) \ 84 84 text_engine.$(OBJEXT) array.$(OBJEXT) objModel.$(OBJEXT) \ 85 primitive_model.$(OBJEXT) model.$(OBJEXT) material.$(OBJEXT) \86 texture.$(OBJEXT) particle_engine.$(OBJEXT) \85 md2Model.$(OBJEXT) primitive_model.$(OBJEXT) model.$(OBJEXT) \ 86 material.$(OBJEXT) texture.$(OBJEXT) particle_engine.$(OBJEXT) \ 87 87 particle_system.$(OBJEXT) particle_emitter.$(OBJEXT) \ 88 88 base_entity.$(OBJEXT) base_object.$(OBJEXT) \ … … 122 122 @AMDEP_TRUE@ ./$(DEPDIR)/libORXgui_a-gui_video.Po \ 123 123 @AMDEP_TRUE@ ./$(DEPDIR)/light.Po ./$(DEPDIR)/list.Po \ 124 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/model.Po \ 125 @AMDEP_TRUE@ ./$(DEPDIR)/null_parent.Po ./$(DEPDIR)/objModel.Po \ 126 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox.Po ./$(DEPDIR)/p_node.Po \ 124 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/md2Model.Po \ 125 @AMDEP_TRUE@ ./$(DEPDIR)/model.Po ./$(DEPDIR)/null_parent.Po \ 126 @AMDEP_TRUE@ ./$(DEPDIR)/objModel.Po ./$(DEPDIR)/orxonox.Po \ 127 @AMDEP_TRUE@ ./$(DEPDIR)/p_node.Po \ 127 128 @AMDEP_TRUE@ ./$(DEPDIR)/particle_emitter.Po \ 128 129 @AMDEP_TRUE@ ./$(DEPDIR)/particle_engine.Po \ … … 311 312 lib/graphics/importer/array.cc \ 312 313 lib/graphics/importer/objModel.cc \ 314 lib/graphics/importer/md2Model.cc \ 313 315 lib/graphics/importer/primitive_model.cc \ 314 316 lib/graphics/importer/model.cc \ … … 378 380 lib/graphics/light.h \ 379 381 lib/graphics/text_engine.h \ 382 lib/graphics/importer/array.h \ 383 lib/graphics/importer/abstract_model.h \ 384 lib/graphics/importer/objModel.h \ 385 lib/graphics/importer/md2Model.h \ 386 lib/graphics/importer/primitive_model.h \ 387 lib/graphics/importer/model.h \ 388 lib/graphics/importer/material.h \ 389 lib/graphics/importer/texture.h \ 380 390 lib/graphics/particles/particle_engine.h \ 381 391 lib/graphics/particles/particle_system.h \ … … 536 546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Po@am__quote@ 537 547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@ 548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md2Model.Po@am__quote@ 538 549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/model.Po@am__quote@ 539 550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_parent.Po@am__quote@ … … 1207 1218 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1208 1219 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o objModel.obj `if test -f 'lib/graphics/importer/objModel.cc'; then $(CYGPATH_W) 'lib/graphics/importer/objModel.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/objModel.cc'; fi` 1220 1221 md2Model.o: lib/graphics/importer/md2Model.cc 1222 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT md2Model.o -MD -MP -MF "$(DEPDIR)/md2Model.Tpo" -c -o md2Model.o `test -f 'lib/graphics/importer/md2Model.cc' || echo '$(srcdir)/'`lib/graphics/importer/md2Model.cc; \ 1223 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/md2Model.Tpo" "$(DEPDIR)/md2Model.Po"; else rm -f "$(DEPDIR)/md2Model.Tpo"; exit 1; fi 1224 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/importer/md2Model.cc' object='md2Model.o' libtool=no @AMDEPBACKSLASH@ 1225 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/md2Model.Po' tmpdepfile='$(DEPDIR)/md2Model.TPo' @AMDEPBACKSLASH@ 1226 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1227 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o md2Model.o `test -f 'lib/graphics/importer/md2Model.cc' || echo '$(srcdir)/'`lib/graphics/importer/md2Model.cc 1228 1229 md2Model.obj: lib/graphics/importer/md2Model.cc 1230 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT md2Model.obj -MD -MP -MF "$(DEPDIR)/md2Model.Tpo" -c -o md2Model.obj `if test -f 'lib/graphics/importer/md2Model.cc'; then $(CYGPATH_W) 'lib/graphics/importer/md2Model.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/md2Model.cc'; fi`; \ 1231 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/md2Model.Tpo" "$(DEPDIR)/md2Model.Po"; else rm -f "$(DEPDIR)/md2Model.Tpo"; exit 1; fi 1232 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/importer/md2Model.cc' object='md2Model.obj' libtool=no @AMDEPBACKSLASH@ 1233 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/md2Model.Po' tmpdepfile='$(DEPDIR)/md2Model.TPo' @AMDEPBACKSLASH@ 1234 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1235 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o md2Model.obj `if test -f 'lib/graphics/importer/md2Model.cc'; then $(CYGPATH_W) 'lib/graphics/importer/md2Model.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/md2Model.cc'; fi` 1209 1236 1210 1237 primitive_model.o: lib/graphics/importer/primitive_model.cc … … 1634 1661 1635 1662 distdir: $(DISTFILES) 1636 $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/ particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities1663 $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/graphics/particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities 1637 1664 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 1638 1665 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ -
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.