Changeset 8591 in orxonox.OLD for branches/bsp_model/src/lib/util
- Timestamp:
- Jun 19, 2006, 11:03:58 PM (19 years ago)
- Location:
- branches/bsp_model/src/lib/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/util/loading/resource_manager.cc
r8590 r8591 29 29 #include "md2/md2Model.h" 30 30 #include "md3/md3_data.h" 31 #include "md3/md3_animation_cfg.h" 31 32 #endif /* NO_MODEL */ 32 33 #ifndef NO_TEXTURES … … 204 205 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md3", 4)) 205 206 tmpType = MD3; 207 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".cfg", 4)) 208 tmpType = MD3_CONFIG; 206 209 else if (!strcasecmp(fileName.c_str(), "cube") || 207 210 !strcasecmp(fileName.c_str(), "sphere") || … … 406 409 if(File(fullName).isFile()) 407 410 { 408 PRINTF(0)("md3 load\n");409 411 tmpResource->param[0] = param0; 410 412 tmpResource->param[1] = param1; 411 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); 412 422 } 413 423 break; … … 640 650 match = true; 641 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()) 642 658 match = true; 643 659 break; … … 883 899 "MD2-Data", 884 900 "MD3-Data", 901 "MD3-Config" 885 902 #endif 886 903 #ifndef NO_TEXT -
branches/bsp_model/src/lib/util/loading/resource_manager.h
r8590 r8591 34 34 MD2, //!< loading md2-file 35 35 MD3, //!< loading md3-file 36 MD3_CONFIG, //!< the md3 config file 36 37 #endif /* NO_MODEL */ 37 38 #ifndef NO_TEXT
Note: See TracChangeset
for help on using the changeset viewer.