Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 9, 2005, 10:43:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: much cleaner Model Loading unloading, model is now private to WorldEntity (not protected)

Location:
trunk/src/util/loading
Files:
2 edited

Legend:

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

    r5930 r5994  
    606606}
    607607
     608
    608609/**
    609610 * Searches for a Resource by some information
     
    616617*/
    617618Resource* ResourceManager::locateResourceByInfo(const char* fileName, ResourceType type,
    618                                                 void* param1, void* param2, void* param3)
     619                                                void* param1, void* param2, void* param3) const
    619620{
    620621  //  Resource* enumRes = resourceList->enumerate();
     
    692693 * @returns a Pointer to the Resource if found, NULL otherwise.
    693694*/
    694 Resource* ResourceManager::locateResourceByPointer(const void* pointer)
     695Resource* ResourceManager::locateResourceByPointer(const void* pointer) const
    695696{
    696697  //  Resource* enumRes = resourceList->enumerate();
  • trunk/src/util/loading/resource_manager.h

    r5480 r5994  
    119119  bool unloadAllByPriority(ResourcePriority prio);
    120120
     121  Resource* locateResourceByInfo(const char* fileName, ResourceType type, void* param1, void* param2, void* param3) const;
     122  Resource* locateResourceByPointer(const void* pointer) const;
     123
    121124  void debug() const;
    122125
     
    137140  ResourceManager();
    138141
    139   Resource* locateResourceByInfo(const char* fileName, ResourceType type, void* param1, void* param2, void* param3);
    140   Resource* locateResourceByPointer(const void* pointer);
    141 
    142142 private:
    143143  static ResourceManager*  singletonRef;       //!< singleton Reference
Note: See TracChangeset for help on using the changeset viewer.