Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5304 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Oct 7, 2005, 3:28:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: so, ResourceManager now operates on BaseObjects. If this is better, i do not know, but at least it is more intuitive, i think

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/resource_manager.cc

    r5303 r5304  
    7373
    7474  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());
    7676
    7777  delete this->resourceList;
     
    185185 * @returns a pointer to a desired Resource.
    186186*/
    187 void* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3)
     187BaseObject* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3)
    188188{
    189189  ResourceType tmpType;
     
    243243 * @returns a pointer to a desired Resource.
    244244*/
    245 void* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio,
     245BaseObject* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio,
    246246                            void* param1, void* param2, void* param3)
    247247{
  • trunk/src/util/resource_manager.h

    r5121 r5304  
    6565struct Resource
    6666{
    67   void*             pointer;           //!< Pointer to the Resource.
     67  BaseObject*       pointer;           //!< Pointer to the Resource.
    6868  int               count;             //!< How many times this Resource has been loaded.
    6969
     
    105105  bool checkDataDir(const char* fileInside);
    106106  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,
    108108             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,
    110110             void* param1 = NULL, void* param2 = NULL, void* param3 = NULL);
    111111  bool unload(void* pointer, ResourcePriority prio = RP_NO);
Note: See TracChangeset for help on using the changeset viewer.