Changeset 4534 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.h
- Timestamp:
- Jun 7, 2005, 9:49:57 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/resource_manager.h
r4519 r4534 7 7 Otherwise it will instruct the coresponding resource-loader to load, 8 8 and receive a pointer to it. 9 10 it is possible to compile the resource Manager without some modules by 11 just adding the compile flag -D.... 12 (NO_MODEL) 13 (NO_AUDIO) 14 (NO_TEXT) 15 (NO_TEXTURES) 9 16 */ 10 17 … … 20 27 21 28 //! An eumerator for different fileTypes the resourceManager supports 22 typedef enum ResourceType { OBJ, //!< loading .obj file 23 PRIM, //!< loading primitive model 24 MD2, //!< loading md2-file 25 WAV, //!< loading wav 26 MP3, //!< loading mp3 27 OGG, //!< loading ogg 28 TTF, //!< loading a TrueTypeFont 29 IMAGE }; //!< loading an image 29 typedef enum ResourceType { 30 #ifndef NO_MODEL 31 OBJ, //!< loading .obj file 32 PRIM, //!< loading primitive model 33 MD2, //!< loading md2-file 34 #endif /* NO_MODEL */ 35 #ifndef NO_AUDIO 36 WAV, //!< loading wav 37 MP3, //!< loading mp3 38 OGG, //!< loading ogg 39 #endif /* NO_AUDIO */ 40 #ifndef NO_TEXT 41 TTF, //!< loading a TrueTypeFont 42 #endif /* NO_TEXT */ 43 #ifndef NO_TEXTURES 44 IMAGE //!< loading an image 45 #endif /* NO_TEXTURES */ 46 }; 30 47 31 48 //! An enumerator for different UNLOAD-types. … … 52 69 53 70 // more specific 71 #ifndef NO_MODEL 54 72 float modelSize; //!< the size of the model (OBJ/PRIM) 73 char* skinFileName; //!< skinFileName (MD2) 74 #endif /* NO_MODEL */ 75 #ifndef NO_TEXT 55 76 unsigned int ttfSize; //!< the size of the ttf-font (TTF) 56 77 unsigned char ttfColorR; //!< red Color (TTF) 57 78 unsigned char ttfColorG; //!< green Color (TTF) 58 79 unsigned char ttfColorB; //!< blue Color (TTF) 59 char* skinFileName; //!< skinFileName (MD2) 80 #endif /* NO_TEXT */ 60 81 }; 61 82
Note: See TracChangeset
for help on using the changeset viewer.