Changeset 8724 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Jun 22, 2006, 3:14:58 PM (18 years ago)
- Location:
- trunk/src/lib/util
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/Makefile.am
r8367 r8724 6 6 libORXlibutil_a_SOURCES = \ 7 7 substring.cc \ 8 tokenizer.cc \ 8 9 color.cc \ 9 10 helper_functions.cc \ … … 28 29 timer.cc 29 30 31 30 32 noinst_HEADERS = \ 31 33 substring.h \ 34 tokenizer.h \ 32 35 multi_type.h \ 33 36 color.h \ -
trunk/src/lib/util/loading/resource_manager.cc
r8490 r8724 28 28 #include "primitive_model.h" 29 29 #include "md2/md2Model.h" 30 #include "md3/md3_data.h" 31 #include "md3/md3_animation_cfg.h" 30 32 #endif /* NO_MODEL */ 31 33 #ifndef NO_TEXTURES … … 201 203 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md2", 4)) 202 204 tmpType = MD2; 205 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md3", 4)) 206 tmpType = MD3; 207 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".cfg", 4)) 208 tmpType = MD3_CONFIG; 203 209 else if (!strcasecmp(fileName.c_str(), "cube") || 204 210 !strcasecmp(fileName.c_str(), "sphere") || … … 400 406 } 401 407 break; 408 case MD3: 409 if(File(fullName).isFile()) 410 { 411 tmpResource->param[0] = param0; 412 tmpResource->param[1] = param1; 413 tmpResource->pointer = new md3::MD3Data(fullName, tmpResource->param[0].getCString(), tmpResource->param[1].getFloat()); 414 } 415 break; 416 case MD3_CONFIG: 417 if(File(fullName).isFile()) 418 { 419 tmpResource->param[0] = param0; 420 tmpResource->param[1] = param1; 421 tmpResource->pointer = new md3::MD3AnimationCfg(fullName); 422 } 423 break; 402 424 #endif /* NO_MODEL */ 403 425 #ifndef NO_TEXT … … 624 646 match = true; 625 647 break; 648 case MD3: 649 if (param0 == MT_NULL && ((*resource)->param[0] == "") && param1 == MT_NULL && ((*resource)->param[0] == 1.0f)) 650 match = true; 651 else if ((*resource)->param[0] == ((MultiType)param0).getString() && (*resource)->param[1] == ((MultiType)param1).getFloat()) 652 match = true; 653 break; 654 case MD3_CONFIG: 655 if (param0 == MT_NULL && ((*resource)->param[0] == "")) 656 match = true; 657 else if ((*resource)->param[0] == ((MultiType)param0).getString()) 658 match = true; 659 break; 660 626 661 #endif /* NO_MODEL */ 627 662 #ifndef NO_TEXT … … 863 898 "PrimitiveModel", 864 899 "MD2-Data", 900 "MD3-Data", 901 "MD3-Config" 865 902 #endif 866 903 #ifndef NO_TEXT -
trunk/src/lib/util/loading/resource_manager.h
r8330 r8724 33 33 PRIM, //!< loading primitive model 34 34 MD2, //!< loading md2-file 35 MD3, //!< loading md3-file 36 MD3_CONFIG, //!< the md3 config file 35 37 #endif /* NO_MODEL */ 36 38 #ifndef NO_TEXT
Note: See TracChangeset
for help on using the changeset viewer.