Changeset 10052 in orxonox.OLD for branches/mount_points/src/lib/graphics/importer/oif/resource_oif.cc
- Timestamp:
- Dec 13, 2006, 12:22:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/oif/resource_oif.cc
r10051 r10052 7 7 8 8 9 ResourceOIF::ResourceOIF(const std::string& modelName, const Resources::KeepLevel& keepLevel)9 ResourceOIF::ResourceOIF(const std::string& fileName, const Resources::KeepLevel& keepLevel) 10 10 : Resource(&ResourceOIF::type) 11 11 { 12 Resources::StorePointer* ptr = this->acquireResource( loadString(modelName));12 Resources::StorePointer* ptr = this->acquireResource(fileName); 13 13 14 14 if (ptr) 15 15 { 16 PRINTF(0)("FOUND OIF: %s\n", modelName.c_str());16 PRINTF(0)("FOUND OIF: %s\n", fileName.c_str()); 17 17 //this->acquireData(static_cast<ResourceOIF::OIFResourcePointer*>(ptr)->ptr()); 18 18 } 19 19 else 20 20 { 21 PRINTF(0)("NOT FOUND OIF: %s\n", modelName.c_str());21 PRINTF(0)("NOT FOUND OIF: %s\n", fileName.c_str()); 22 22 // std::string modelFileName = this->Resource::locateFile(modelName); 23 23 // //std::string skinFileName = this->Resource::locateFile(skinName); … … 31 31 { 32 32 SubString loadValues(loadString, ','); 33 std::string modelName; 34 std::string skinName; 35 float scale = 1.0f; 33 std::string fileName; 36 34 if (loadValues.size() > 0) 37 modelName = loadValues[0]; 38 if (loadValues.size() > 1) 39 skinName = loadValues[1]; 40 if (loadValues.size() > 2) 41 scale = MultiType(loadValues[2]).getFloat(); 35 fileName = loadValues[0]; 42 36 43 return ResourceOIF( modelName);37 return ResourceOIF(fileName); 44 38 } 45 39 46 std::string ResourceOIF::loadString(const std::string& modelName)47 {48 return modelName;49 }50 40 51 41
Note: See TracChangeset
for help on using the changeset viewer.