Changeset 8590 in orxonox.OLD for branches/bsp_model/src/lib/util/loading/resource_manager.cc
- Timestamp:
- Jun 19, 2006, 10:48:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/util/loading/resource_manager.cc
r8490 r8590 28 28 #include "primitive_model.h" 29 29 #include "md2/md2Model.h" 30 #include "md3/md3_data.h" 30 31 #endif /* NO_MODEL */ 31 32 #ifndef NO_TEXTURES … … 201 202 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md2", 4)) 202 203 tmpType = MD2; 204 else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md3", 4)) 205 tmpType = MD3; 203 206 else if (!strcasecmp(fileName.c_str(), "cube") || 204 207 !strcasecmp(fileName.c_str(), "sphere") || … … 400 403 } 401 404 break; 405 case MD3: 406 if(File(fullName).isFile()) 407 { 408 PRINTF(0)("md3 load\n"); 409 tmpResource->param[0] = param0; 410 tmpResource->param[1] = param1; 411 tmpResource->pointer = new md3::MD3Data(fullName, tmpResource->param[0].getCString(), tmpResource->param[1].getFloat()); 412 } 413 break; 402 414 #endif /* NO_MODEL */ 403 415 #ifndef NO_TEXT … … 624 636 match = true; 625 637 break; 638 case MD3: 639 if (param0 == MT_NULL && ((*resource)->param[0] == "") && param1 == MT_NULL && ((*resource)->param[0] == 1.0f)) 640 match = true; 641 else if ((*resource)->param[0] == ((MultiType)param0).getString() && (*resource)->param[1] == ((MultiType)param1).getFloat()) 642 match = true; 643 break; 644 626 645 #endif /* NO_MODEL */ 627 646 #ifndef NO_TEXT … … 863 882 "PrimitiveModel", 864 883 "MD2-Data", 884 "MD3-Data", 865 885 #endif 866 886 #ifndef NO_TEXT
Note: See TracChangeset
for help on using the changeset viewer.