Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4534 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.h


Ignore:
Timestamp:
Jun 7, 2005, 9:49:57 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ResourceManager should now be able to compile without some modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/resource_manager.h

    r4519 r4534  
    77    Otherwise it will instruct the coresponding resource-loader to load,
    88    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)
    916*/
    1017
     
    2027
    2128//! 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
     29typedef 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};
    3047
    3148//! An enumerator for different UNLOAD-types.
     
    5269
    5370  // more specific
     71#ifndef NO_MODEL
    5472  float             modelSize;         //!< the size of the model (OBJ/PRIM)
     73  char*             skinFileName;      //!< skinFileName (MD2)
     74#endif /* NO_MODEL */
     75#ifndef NO_TEXT
    5576  unsigned int      ttfSize;           //!< the size of the ttf-font (TTF)
    5677  unsigned char     ttfColorR;         //!< red Color (TTF)
    5778  unsigned char     ttfColorG;         //!< green Color (TTF)
    5879  unsigned char     ttfColorB;         //!< blue Color (TTF)
    59   char*             skinFileName;      //!< skinFileName (MD2)
     80#endif /* NO_TEXT */
    6081};
    6182
Note: See TracChangeset for help on using the changeset viewer.