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

Public Member Functions

 cTextureManager (cGraphics *apGraphics, cResources *apResources)
 
iResourceBaseCreate (const tString &asName)
 
iTextureCreate1D (const tString &asName, bool abUseMipMaps, bool abCompress=false, eTextureType aType=eTextureType_Normal, unsigned int alTextureSizeLevel=0)
 
iTextureCreate2D (const tString &asName, bool abUseMipMaps, bool abCompress=false, eTextureType aType=eTextureType_Normal, unsigned int alTextureSizeLevel=0, eTextureTarget aTarget=eTextureTarget_2D)
 
iTextureCreateAnim2D (const tString &asName, bool abUseMipMaps, bool abCompress=false, eTextureType aType=eTextureType_Normal, unsigned int alTextureSizeLevel=0)
 
iTextureCreateCubeMap (const tString &asName, bool abUseMipMaps, bool abCompress=false, eTextureType aType=eTextureType_Normal, unsigned int alTextureSizeLevel=0)
 
iTextureCreateAttenuation (const tString &asFallOffName)
 
void Destroy (iResourceBase *apResource)
 
void Unload (iResourceBase *apResource)
 
void Update (float afTimeStep)
 
- 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 ()
 

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

◆ CreateAnim2D()

iTexture* hpl::cTextureManager::CreateAnim2D ( const tString asName,
bool  abUseMipMaps,
bool  abCompress = false,
eTextureType  aType = eTextureType_Normal,
unsigned int  alTextureSizeLevel = 0 
)

Creates an animated texture. The name must be [name].[ext]. And then the textures in the animtion must be named [name]01.[ext], [name]02.[ext], etc

Parameters
asName
abUseMipMaps
abCompress
aType
Returns

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