Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/util/resource_manager.h
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/src/util/resource_manager.h
r3983 r4217 18 18 19 19 //! An eumerator for different fileTypes the resourceManager supports \todo WAV, MP3, OGG support 20 enum ResourceType {OBJ, PRIM, WAV, MP3, OGG, TTF, IMAGE}; 20 enum ResourceType {OBJ, 21 PRIM, 22 WAV, 23 MP3, 24 OGG, 25 TTF, 26 IMAGE}; 21 27 //! An enumerator for different UNLOAD-types. 22 28 /** … … 26 32 RP_GAME: will be unloaded at the end of the whole Game (when closing orxonox) 27 33 */ 28 enum ResourcePriority {RP_NO = 0, RP_LEVEL = 1, RP_CAMPAIGN = 2, RP_GAME = 3}; 34 enum ResourcePriority {RP_NO = 0, 35 RP_LEVEL = 1, 36 RP_CAMPAIGN = 2, 37 RP_GAME = 3}; 29 38 30 39 //! A Struct that keeps track about A resource its name its Type, and so on … … 65 74 66 75 bool setDataDir(const char* dataDir); 76 /** \returns the Name of the data directory */ 77 inline const char* getDataDir(void) const {return this->dataDir;} 78 79 bool checkDataDir(const char* fileInside); 67 80 bool addImageDir(char* imageDir); 68 81 void* load(const char* fileName, ResourcePriority prio = RP_NO, … … 78 91 // utility functions of this class 79 92 static bool isDir(const char* directory); 80 static bool isFile(const char* directory); 93 static bool isFile(const char* fileName); 94 static bool touchFile(const char* fileName); 95 static bool deleteFile(const char* fileName); 96 static char* homeDirCheck(const char* fileName); 97 static char* getFullName(const char* fileName); 81 98 82 99 private:
Note: See TracChangeset
for help on using the changeset viewer.