ScummVM API documentation
hpl::cImageManager Class Reference
Inheritance diagram for hpl::cImageManager:
hpl::iResourceManager

Public Member Functions

 cImageManager (cFileSearcher *apFileSearcher, iLowLevelGraphics *apLowLevelGraphics, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
iResourceBase * Create (const tString &asName)
 
void Destroy (iResourceBase *apResource)
 
void Unload (iResourceBase *apResource)
 
iResourceBase * CreateInFrame (const tString &asName, int alFrameHandle)
 
cResourceImage * CreateImage (const tString &asName, int alFrameHandle=-1)
 
int FlushAll ()
 
void DeleteAllBitmapFrames ()
 
cResourceImage * CreateFromBitmap (const tString &asName, Bitmap2D *apBmp, int alFrameHandle=-1)
 
int CreateFrame (cVector2l avSize)
 
void SetFrameLocked (int alHandle, bool abLocked)
 
- Public Member Functions inherited from hpl::iResourceManager
 iResourceManager (cFileSearcher *apFileSearcher, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
virtual iResourceBase * Create (const tString &asName)=0
 
iResourceBase * GetByName (const tString &asName)
 
iResourceBase * GetByHandle (unsigned long alHandle)
 
cResourceBaseIterator GetResourceBaseIterator ()
 
void DestroyUnused (int alMaxToKeep)
 
virtual void Destroy (iResourceBase *apResource)=0
 
virtual void DestroyAll ()
 
virtual void Unload (iResourceBase *apResource)=0
 
virtual void Update (float afTimeStep)
 

Additional Inherited Members

- Protected Member Functions inherited from hpl::iResourceManager
void BeginLoad (const tString &asFile)
 
void EndLoad ()
 
iResourceBase * FindLoadedResource (const tString &asName, tString &asFilePath)
 
void AddResource (iResourceBase *apResource, bool abLog=true)
 
void RemoveResource (iResourceBase *apResource)
 
unsigned long GetHandle ()
 
tString GetTabs ()
 
- Protected Attributes inherited from hpl::iResourceManager
unsigned long mlHandleCount
 
tResourceNameMap m_mapNameResources
 
tResourceHandleMap m_mapHandleResources
 
cFileSearcher * mpFileSearcher
 
LowLevelResources * mpLowLevelResources
 
LowLevelSystem * mpLowLevelSystem
 
unsigned long mlTimeStart
 
- Static Protected Attributes inherited from hpl::iResourceManager
static int mlTabCount
 

Member Function Documentation

◆ Create()

iResourceBase * hpl::cImageManager::Create ( const tString &  asName)
virtual

Implements hpl::iResourceManager.

◆ Destroy()

void hpl::cImageManager::Destroy ( iResourceBase *  apResource)
virtual

Implements hpl::iResourceManager.

◆ Unload()

void hpl::cImageManager::Unload ( iResourceBase *  apResource)
virtual

Implements hpl::iResourceManager.

◆ FlushAll()

int hpl::cImageManager::FlushAll ( )

Draws all updated content to textures. THis must be done before a loaded image can be used. Use this as unoften as possible.

Returns
Number of bitmaps flushes

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