Changeset 6184 in orxonox.OLD for branches/christmas_branche/src/subprojects/importer
- Timestamp:
- Dec 20, 2005, 1:44:21 PM (19 years ago)
- Location:
- branches/christmas_branche/src/subprojects/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/subprojects/importer/Makefile.am
r5865 r6184 24 24 $(MAINSRCDIR)/lib/math/vector.cc \ 25 25 $(MAINSRCDIR)/util/loading/resource_manager.cc \ 26 $(MAINSRCDIR)/lib/ util/ini_parser.cc \26 $(MAINSRCDIR)/lib/parser/ini_parser/ini_parser.cc \ 27 27 $(MAINSRCDIR)/lib/coord/p_node.cc \ 28 $(MAINSRCDIR)/lib/coord/null_parent.cc \29 28 $(MAINSRCDIR)/util/loading/load_param.cc \ 30 29 $(MAINSRCDIR)/util/loading/load_param_description.cc \ … … 52 51 $(MAINSRCDIR)/lib/math/vector.cc \ 53 52 $(MAINSRCDIR)/util/loading/resource_manager.cc \ 54 $(MAINSRCDIR)/lib/ util/ini_parser.cc \53 $(MAINSRCDIR)/lib/parser/ini_parser/ini_parser.cc \ 55 54 $(MAINSRCDIR)/lib/coord/p_node.cc \ 56 $(MAINSRCDIR)/lib/coord/null_parent.cc \57 55 $(MAINSRCDIR)/util/loading/load_param.cc \ 58 56 $(MAINSRCDIR)/util/loading/load_param_description.cc \ -
branches/christmas_branche/src/subprojects/importer/importer.cc
r4741 r6184 21 21 22 22 #include "objModel.h" 23 #include "md2Model.h" 23 24 #include "primitive_model.h" 24 25 #include <stdlib.h> … … 40 41 41 42 if (argc>=3) 42 obj = new OBJModel (argv[1], atof(argv[2])); 43 { 44 if( strstr(argv[1], ".obj") != NULL) 45 obj = new OBJModel (argv[1], atof(argv[2])); 46 else if( strstr(argv[1], ".md2") != NULL) 47 obj = new MD2Model(argv[1], argv[2]); 48 } 43 49 else if (argc>=2) 44 obj = new OBJModel(argv[1]); 50 { 51 if( strstr(argv[1], ".obj") != NULL) 52 obj = new OBJModel(argv[1]); 53 else if( strstr(argv[1], ".md2") != NULL) 54 obj = new MD2Model(argv[1], "fake_texture.bad"); 55 } 45 56 else 46 57 obj = new PrimitiveModel(PRIM_CYLINDER);
Note: See TracChangeset
for help on using the changeset viewer.