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)
 
iResourceBaseCreate (const tString &asName)
 
void Destroy (iResourceBase *apResource)
 
void Unload (iResourceBase *apResource)
 
iResourceBaseCreateInFrame (const tString &asName, int alFrameHandle)
 
cResourceImageCreateImage (const tString &asName, int alFrameHandle=-1)
 
int FlushAll ()
 
void DeleteAllBitmapFrames ()
 
cResourceImageCreateFromBitmap (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)
 
iResourceBaseGetByName (const tString &asName)
 
iResourceBaseGetByHandle (unsigned long alHandle)
 
cResourceBaseIterator GetResourceBaseIterator ()
 
void DestroyUnused (int alMaxToKeep)
 
virtual void DestroyAll ()
 
virtual void Update (float afTimeStep)
 

Additional Inherited Members

- Protected Member Functions inherited from hpl::iResourceManager
void BeginLoad (const tString &asFile)
 
void EndLoad ()
 
iResourceBaseFindLoadedResource (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
 
cFileSearchermpFileSearcher
 
LowLevelResourcesmpLowLevelResources
 
LowLevelSystemmpLowLevelSystem
 
unsigned long mlTimeStart
 
- Static Protected Attributes inherited from hpl::iResourceManager
static int mlTabCount
 

Member Function Documentation

◆ 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: