ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <resource.h>

Collaboration diagram for Grim::ResourceLoader:

List of all members.

Classes

struct  ResourceCache

Public Member Functions

 ResourceLoader ()
 ~ResourceLoader ()
CMaploadColormap (const Common::String &fname)
CostumeloadCostume (const Common::String &fname, Actor *owner, Costume *prevCost)
FontloadFont (const Common::String &fname)
KeyframeAnimloadKeyframe (const Common::String &fname)
MaterialloadMaterial (const Common::String &fname, CMap *c, bool clamp)
ModelloadModel (const Common::String &fname, CMap *c, Model *parent=NULL)
EMIModelloadModelEMI (const Common::String &fname, EMICostume *costume)
LipSyncloadLipSync (const Common::String &fname)
SkeletonloadSkeleton (const Common::String &fname)
SpriteloadSprite (const Common::String &fname, EMICostume *costume)
AnimationEmiloadAnimationEmi (const Common::String &filename)
Common::SeekableReadStreamopenNewStreamFile (Common::String fname, bool cache=false) const
ModelPtr getModel (const Common::String &fname, CMap *c)
CMapPtr getColormap (const Common::String &fname)
KeyframeAnimPtr getKeyframe (const Common::String &fname)
LipSyncPtr getLipSync (const Common::String &fname)
AnimationEmiPtr getAnimationEmi (const Common::String &fname)
void uncacheModel (Model *m)
void uncacheColormap (CMap *c)
void uncacheKeyframe (KeyframeAnim *kf)
void uncacheLipSync (LipSync *l)
void uncacheAnimationEmi (AnimationEmi *a)

Static Public Member Functions

static Common::String fixFilename (const Common::String &filename, bool append=true)

Private Member Functions

Common::SeekableReadStreamloadFile (const Common::String &filename) const
Common::SeekableReadStreamgetFileFromCache (const Common::String &filename) const
ResourceLoader::ResourceCachegetEntryFromCache (const Common::String &filename) const
void putIntoCache (const Common::String &fname, byte *res, uint32 len) const
void uncache (const char *fname) const

Private Attributes

Common::Array< ResourceCache_cache
bool _cacheDirty
int32 _cacheMemorySize
Common::List< EMIModel * > _emiModels
Common::List< Model * > _models
Common::List< CMap * > _colormaps
Common::List< KeyframeAnim * > _keyframeAnims
Common::List< LipSync * > _lipsyncs
Common::List< AnimationEmi * > _emiAnims

Detailed Description

Definition at line 58 of file resource.h.


Constructor & Destructor Documentation

Grim::ResourceLoader::ResourceLoader (  ) 

Definition at line 74 of file resource.cpp.

Grim::ResourceLoader::~ResourceLoader (  ) 

Definition at line 223 of file resource.cpp.


Member Function Documentation

Common::String Grim::ResourceLoader::fixFilename ( const Common::String filename,
bool  append = true 
) [static]

Definition at line 324 of file resource.cpp.

AnimationEmiPtr Grim::ResourceLoader::getAnimationEmi ( const Common::String fname  ) 

Definition at line 610 of file resource.cpp.

CMapPtr Grim::ResourceLoader::getColormap ( const Common::String fname  ) 

Definition at line 571 of file resource.cpp.

ResourceLoader::ResourceCache * Grim::ResourceLoader::getEntryFromCache ( const Common::String filename  )  const [private]

Definition at line 249 of file resource.cpp.

Common::SeekableReadStream * Grim::ResourceLoader::getFileFromCache ( const Common::String filename  )  const [private]

Definition at line 240 of file resource.cpp.

KeyframeAnimPtr Grim::ResourceLoader::getKeyframe ( const Common::String fname  ) 

Definition at line 584 of file resource.cpp.

LipSyncPtr Grim::ResourceLoader::getLipSync ( const Common::String fname  ) 

Definition at line 597 of file resource.cpp.

ModelPtr Grim::ResourceLoader::getModel ( const Common::String fname,
CMap c 
)

Definition at line 558 of file resource.cpp.

AnimationEmi * Grim::ResourceLoader::loadAnimationEmi ( const Common::String filename  ) 

Definition at line 501 of file resource.cpp.

CMap * Grim::ResourceLoader::loadColormap ( const Common::String fname  ) 

Definition at line 311 of file resource.cpp.

Costume * Grim::ResourceLoader::loadCostume ( const Common::String fname,
Actor owner,
Costume prevCost 
)

Definition at line 340 of file resource.cpp.

Common::SeekableReadStream * Grim::ResourceLoader::loadFile ( const Common::String filename  )  const [private]

Definition at line 264 of file resource.cpp.

Font * Grim::ResourceLoader::loadFont ( const Common::String fname  ) 

Definition at line 360 of file resource.cpp.

KeyframeAnim * Grim::ResourceLoader::loadKeyframe ( const Common::String fname  ) 

Definition at line 374 of file resource.cpp.

LipSync * Grim::ResourceLoader::loadLipSync ( const Common::String fname  ) 

Definition at line 388 of file resource.cpp.

Material * Grim::ResourceLoader::loadMaterial ( const Common::String fname,
CMap c,
bool  clamp 
)

Definition at line 410 of file resource.cpp.

Model * Grim::ResourceLoader::loadModel ( const Common::String fname,
CMap c,
Model parent = NULL 
)

Definition at line 434 of file resource.cpp.

EMIModel * Grim::ResourceLoader::loadModelEMI ( const Common::String fname,
EMICostume costume 
)

Definition at line 449 of file resource.cpp.

Skeleton * Grim::ResourceLoader::loadSkeleton ( const Common::String fname  ) 

Definition at line 466 of file resource.cpp.

Sprite * Grim::ResourceLoader::loadSprite ( const Common::String fname,
EMICostume costume 
)

Definition at line 482 of file resource.cpp.

Common::SeekableReadStream * Grim::ResourceLoader::openNewStreamFile ( Common::String  fname,
bool  cache = false 
) const

Definition at line 275 of file resource.cpp.

void Grim::ResourceLoader::putIntoCache ( const Common::String fname,
byte res,
uint32  len 
) const [private]

Definition at line 300 of file resource.cpp.

void Grim::ResourceLoader::uncache ( const char *  fname  )  const [private]

Definition at line 518 of file resource.cpp.

void Grim::ResourceLoader::uncacheAnimationEmi ( AnimationEmi a  ) 

Definition at line 554 of file resource.cpp.

void Grim::ResourceLoader::uncacheColormap ( CMap c  ) 

Definition at line 542 of file resource.cpp.

void Grim::ResourceLoader::uncacheKeyframe ( KeyframeAnim kf  ) 

Definition at line 546 of file resource.cpp.

void Grim::ResourceLoader::uncacheLipSync ( LipSync l  ) 

Definition at line 550 of file resource.cpp.

void Grim::ResourceLoader::uncacheModel ( Model m  ) 

Definition at line 538 of file resource.cpp.


Member Data Documentation

Definition at line 102 of file resource.h.

bool Grim::ResourceLoader::_cacheDirty [mutable, private]

Definition at line 103 of file resource.h.

Definition at line 104 of file resource.h.

Definition at line 108 of file resource.h.

Definition at line 111 of file resource.h.

Definition at line 106 of file resource.h.

Definition at line 110 of file resource.h.

Definition at line 107 of file resource.h.


The documentation for this class was generated from the following files:


Generated on Sat Nov 16 2019 05:03:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge