Changeset 3775 in orxonox.OLD for orxonox/branches/textEngine/src/lib/util/resource_manager.h
- Timestamp:
- Apr 11, 2005, 4:16:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/util/resource_manager.h
r3769 r3775 33 33 { 34 34 void* pointer; //!< Pointer to the Resource. 35 int count; //!< How many times this Resource has been loaded. 35 36 36 37 char* name; //!< Name of the Resource. 37 38 ResourceType type; //!< ResourceType of this Resource. 38 39 ResourcePriority prio; //!< The Priority of this resource. (This will only be increased) 39 int count; //!< How many times this Resource has been loaded. 40 41 // more specific 42 float modelSize; 43 unsigned int ttfSize; 44 unsigned char ttfColorR; 45 unsigned char ttfColorG; 46 unsigned char ttfColorB; 40 47 }; 41 48 … … 60 67 bool setDataDir(char* dataDir); 61 68 bool addImageDir(char* imageDir); 62 void* load(const char* fileName, ResourcePriority prio = RP_NO); 63 void* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO); 69 void* load(const char* fileName, ResourcePriority prio = RP_NO, 70 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL); 71 void* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO, 72 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL); 64 73 bool unload(void* pointer, ResourcePriority prio = RP_NO); 65 74 bool unload(Resource* resource, ResourcePriority = RP_NO); … … 76 85 77 86 78 Resource* locateResourceBy Name(const char* fileName);87 Resource* locateResourceByInfo(const char* fileName, ResourceType type, void* param1, void* param2, void* param3); 79 88 Resource* locateResourceByPointer(const void* pointer); 80 89
Note: See TracChangeset
for help on using the changeset viewer.