Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 2, 2005, 12:50:37 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: md2Data loadable over the resourceManager

File:
1 edited

Legend:

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

    r4381 r4462  
    1919template<class T> class tList;
    2020
    21 //! An eumerator for different fileTypes the resourceManager supports \todo WAV, MP3, OGG support
    22 enum ResourceType {OBJ,
    23                    PRIM,
    24                    WAV,
    25                    MP3,
    26                    OGG,
    27                    TTF,
    28                    IMAGE};
     21//! An eumerator for different fileTypes the resourceManager supports
     22typedef enum ResourceType { OBJ,
     23                            PRIM,
     24                            MD2,
     25                            WAV,
     26                            MP3,
     27                            OGG,
     28                            TTF,
     29                            IMAGE };
     30
    2931//! An enumerator for different UNLOAD-types.
    3032/**
    31    RP_NO: will be unloaded on request
    32    RP_LEVEL: will be unloaded at the end of a Level
    33    RP_CAMPAIGN: will be unloaded at the end of a Campaign
    34    RP_GAME: will be unloaded at the end of the whole Game (when closing orxonox)
     33   RP_NO:        will be unloaded on request
     34   RP_LEVEL:     will be unloaded at the end of a Level
     35   RP_CAMPAIGN:  will be unloaded at the end of a Campaign
     36   RP_GAME:      will be unloaded at the end of the whole Game (when closing orxonox)
    3537*/
    36 enum ResourcePriority {RP_NO = 0,
    37                        RP_LEVEL = 1,
    38                        RP_CAMPAIGN = 2,
    39                        RP_GAME = 3};
     38typedef enum ResourcePriority { RP_NO        =  0,
     39                                RP_LEVEL     =  1,
     40                                RP_CAMPAIGN  =  2,
     41                                RP_GAME      =   4 };
    4042
    4143//! A Struct that keeps track about A resource its name its Type, and so on
     
    5557  unsigned char ttfColorG;
    5658  unsigned char ttfColorB;
     59  char* skinFileName;
    5760};
    5861
     
    6669
    6770   It does it by looking, if a desired file has already been loaded.
    68 
    69    \todo loading also dependant by parameters.
    7071*/
    7172class ResourceManager : public BaseObject
Note: See TracChangeset for help on using the changeset viewer.