Changeset 6651 in orxonox.OLD for trunk/src/util/loading/resource_manager.cc
- Timestamp:
- Jan 22, 2006, 2:22:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/resource_manager.cc
r6650 r6651 325 325 else 326 326 return false; 327 } 328 329 /** 330 * tells the ResourceManager to generate a Copy of the Resource. 331 * @brief resourcePointer: The Pointer to the resource to copy 332 * @returns the Resource pointed to resourcePointer. 333 */ 334 BaseObject* ResourceManager::copy(BaseObject* resourcePointer) 335 { 336 Resource* tmp = locateResourceByPointer(resourcePointer); 337 if (tmp!=NULL) 338 { 339 tmp->count++; 340 return tmp->pointer; 341 } 342 else 343 return NULL; 327 344 } 328 345 … … 543 560 * @returns true if successful (pointer found, and deleted), false otherwise 544 561 */ 545 bool ResourceManager::unload( void* pointer, ResourcePriority prio)562 bool ResourceManager::unload(BaseObject* pointer, ResourcePriority prio) 546 563 { 547 564 if (pointer == NULL)
Note: See TracChangeset
for help on using the changeset viewer.