Changeset 5304 in orxonox.OLD for trunk/src/util
- Timestamp:
- Oct 7, 2005, 3:28:25 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/resource_manager.cc
r5303 r5304 73 73 74 74 if (this->resourceList->getSize() > 0) 75 PRINTF(1)("Not removed all Textures, since there are still %d resources registered\n", this->resourceList->getSize());75 PRINTF(1)("Not removed all Resources, since there are still %d resources registered\n", this->resourceList->getSize()); 76 76 77 77 delete this->resourceList; … … 185 185 * @returns a pointer to a desired Resource. 186 186 */ 187 void* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3)187 BaseObject* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3) 188 188 { 189 189 ResourceType tmpType; … … 243 243 * @returns a pointer to a desired Resource. 244 244 */ 245 void* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio,245 BaseObject* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio, 246 246 void* param1, void* param2, void* param3) 247 247 { -
trunk/src/util/resource_manager.h
r5121 r5304 65 65 struct Resource 66 66 { 67 void*pointer; //!< Pointer to the Resource.67 BaseObject* pointer; //!< Pointer to the Resource. 68 68 int count; //!< How many times this Resource has been loaded. 69 69 … … 105 105 bool checkDataDir(const char* fileInside); 106 106 bool addImageDir(const char* imageDir); 107 void* load(const char* fileName, ResourcePriority prio = RP_NO,107 BaseObject* load(const char* fileName, ResourcePriority prio = RP_NO, 108 108 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL); 109 void* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO,109 BaseObject* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO, 110 110 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL); 111 111 bool unload(void* pointer, ResourcePriority prio = RP_NO);
Note: See TracChangeset
for help on using the changeset viewer.