Changeset 6645 in orxonox.OLD for trunk/src/util/loading/resource_manager.h
- Timestamp:
- Jan 21, 2006, 4:56:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/resource_manager.h
r6642 r6645 21 21 22 22 #include "base_object.h" 23 23 #include "multi_type.h" 24 24 25 25 #include <vector> … … 74 74 ResourcePriority prio; //!< The Priority of this resource. (This will only be increased) 75 75 76 // more specific 77 union { 78 #ifndef NO_MODEL 79 float modelSize; //!< the size of the model (OBJ/PRIM) 80 char* secFileName; //!< a seconf fileName 81 #endif /* NO_MODEL */ 82 #ifndef NO_TEXT 83 unsigned int ttfSize; //!< the size of the ttf-font (TTF) 84 #endif /* NO_TEXT */ 85 #ifndef NO_TEXTURES 86 GLenum texTarget; 87 #endif /* NO_TEXTURES */ 88 }; 76 MultiType param[3]; //!< The Parameters given to this Resource. 89 77 }; 90 78 … … 117 105 118 106 void cache(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO, 119 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL);107 const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType()); 120 108 121 109 BaseObject* load(const char* fileName, ResourcePriority prio = RP_NO, 122 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL);110 const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType()); 123 111 BaseObject* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO, 124 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL);112 const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType()); 125 113 bool unload(void* pointer, ResourcePriority prio = RP_NO); 126 114 bool unload(Resource* resource, ResourcePriority = RP_NO); 127 115 bool unloadAllByPriority(ResourcePriority prio); 128 116 129 Resource* locateResourceByInfo(const char* fileName, ResourceType type, void* param1, void* param2, void* param3) const; 117 Resource* locateResourceByInfo(const char* fileName, ResourceType type, 118 const MultiType& param0 = MultiType(), const MultiType& param1 = MultiType(), const MultiType& param2 = MultiType()) const; 130 119 Resource* locateResourceByPointer(const void* pointer) const; 131 120 … … 148 137 ResourceManager(); 149 138 Resource* loadResource(const char* fileName, ResourceType type, ResourcePriority prio, 150 void* param1, void* param2, void* param3);139 const MultiType& param0, const MultiType& param1, const MultiType& param2); 151 140 152 141 private:
Note: See TracChangeset
for help on using the changeset viewer.