Changeset 6222 in orxonox.OLD for trunk/src/subprojects/importer
- Timestamp:
- Dec 21, 2005, 1:49:06 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
Makefile.in
Makefile
configure
*.kdevelop
Doxyfile
config.log
config.h
config.status
stamp-h1
autom4te.cache
aclocal.m4
-
Property
svn:ignore
set to
-
trunk/src
-
Property
svn:ignore
set to
.deps
orxonox
Makefile
Makefile.in
-
Property
svn:ignore
set to
-
trunk/src/subprojects
-
Property
svn:ignore
set to
Makefile
Makefile.in
.deps
-
Property
svn:ignore
set to
-
trunk/src/subprojects/importer
-
Property
svn:ignore
set to
Makefile
Makefile.in
.deps
importer
multitex
-
Property
svn:ignore
set to
-
trunk/src/subprojects/importer/Makefile.am
r5865 r6222 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 \ -
trunk/src/subprojects/importer/importer.cc
r4741 r6222 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 { 48 obj = new MD2Model(argv[1], argv[2]); 49 ((MD2Model*)obj)->tick(0.1f); 50 } 51 } 43 52 else if (argc>=2) 44 obj = new OBJModel(argv[1]); 53 { 54 if( strstr(argv[1], ".obj") != NULL) 55 obj = new OBJModel(argv[1]); 56 else if( strstr(argv[1], ".md2") != NULL) { 57 obj = new MD2Model(argv[1], "fake_texture.bad"); 58 obj = new MD2Model(argv[1], argv[2]); 59 ((MD2Model*)obj)->tick(0.1f); 60 } 61 } 45 62 else 46 63 obj = new PrimitiveModel(PRIM_CYLINDER);
Note: See TracChangeset
for help on using the changeset viewer.