Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6651 in orxonox.OLD for trunk/src/util/loading/resource_manager.h


Ignore:
Timestamp:
Jan 22, 2006, 2:22:48 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: copy Resources from the ResourceManger (this is not as safe as with smart-pointers :( )

maybe implement:
http://ootips.org/yonat/4dev/counted_ptr.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/resource_manager.h

    r6650 r6651  
    107107  bool cache(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO,
    108108             const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType());
     109  BaseObject* copy(BaseObject* resourcePointer);
    109110
    110111  BaseObject* load(const char* fileName, ResourcePriority prio = RP_NO,
     
    112113  BaseObject* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO,
    113114                   const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType());
    114   bool unload(void* pointer, ResourcePriority prio = RP_NO);
     115  bool unload(BaseObject* pointer, ResourcePriority prio = RP_NO);
    115116  bool unload(Resource* resource, ResourcePriority = RP_NO);
    116117  bool unloadAllByPriority(ResourcePriority prio);
Note: See TracChangeset for help on using the changeset viewer.