ScummVM API documentation
hpl::cResourceImage Class Reference
Inheritance diagram for hpl::cResourceImage:
hpl::iResourceBase

Public Member Functions

 cResourceImage (tString asName, cFrameTexture *apFrameTex, cFrameBitmap *apFrameBmp, cRect2l aRect, cVector2l avSrcSize, int alHandle)
 
bool reload ()
 
void unload ()
 
void destroy ()
 
int GetHeight () const
 
int GetWidth () const
 
cVector2l GetSize () const
 
cVector2l GetPosition () const
 
int GetSourceWidth () const
 
int GetSourceHeight () const
 
iTextureGetTexture () const
 
cFrameTextureGetFrameTexture () const
 
cFrameBitmapGetFrameBitmap () const
 
tVertexVec GetVertexVecCopy (const cVector2f &avPos, const cVector2f &avSize)
 
const tVertexVecGetVertexVec ()
 
- Public Member Functions inherited from hpl::iResourceBase
 iResourceBase (tString asName, unsigned long alPrio)
 
tString GetName ()
 
unsigned long GetHandle ()
 
void SetHandle (unsigned long alHandle)
 
tString GetFilePath ()
 
unsigned long GetTime ()
 
unsigned long GetPrio ()
 
unsigned long GetSize ()
 
void SetLogDestruction (bool abX)
 
unsigned int GetUserCount ()
 
void IncUserCount ()
 
void DecUserCount ()
 
bool HasUsers ()
 

Additional Inherited Members

- Static Public Member Functions inherited from hpl::iResourceBase
static bool GetLogCreateAndDelete ()
 
static void SetLogCreateAndDelete (bool abX)
 
- Protected Attributes inherited from hpl::iResourceBase
unsigned int mlPrio
 
unsigned long mlTime
 
unsigned long mlSize
 
unsigned int mlUserCount
 
unsigned long mlHandle
 
tString msName
 
tString msFilePath
 
bool mbLogDestruction
 
- Static Protected Attributes inherited from hpl::iResourceBase
static bool mbLogCreateAndDelete
 

Member Function Documentation

◆ reload()

bool hpl::cResourceImage::reload ( )
virtual

virtual bool Reload()=0;

Returns
true is reload was successful, else false.

Implements hpl::iResourceBase.

◆ unload()

void hpl::cResourceImage::unload ( )
virtual

Free most the memory, save info to get started again.

Implements hpl::iResourceBase.

◆ destroy()

void hpl::cResourceImage::destroy ( )
virtual

Free all memory.

Implements hpl::iResourceBase.


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