Changeset 6222 in orxonox.OLD for trunk/src/subprojects/importer/importer.cc
- Timestamp:
- Dec 21, 2005, 1:49:06 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 5 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/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.