ScummVM API documentation
Sherlock::ImageFrame Struct Reference

Public Member Functions

 operator const Graphics::Surface & ()
 
void decompressFrame (const byte *src, bool isRoseTattoo)
 
int sDrawXSize (int scaleVal) const
 
int sDrawYSize (int scaleVal) const
 
int sDrawXOffset (int scaleVal) const
 
int sDrawYOffset (int scaleVal) const
 

Public Attributes

uint32 _pos
 
byte _decoded
 
uint32 _size
 
uint16 _width
 
uint16 _height
 
int _paletteBase
 
bool _rleEncoded
 
Common::Point _offset
 
byte _rleMarker
 
Graphics::Surface _frame
 

Member Function Documentation

◆ operator const Graphics::Surface &()

Sherlock::ImageFrame::operator const Graphics::Surface & ( )
inline

Converts an ImageFrame record to a surface for convenience in passing to drawing methods

◆ decompressFrame()

void Sherlock::ImageFrame::decompressFrame ( const byte *  src,
bool  isRoseTattoo 
)

Decompress a single frame for the sprite

◆ sDrawXSize()

int Sherlock::ImageFrame::sDrawXSize ( int  scaleVal) const

Return the frame width adjusted by a specified scale amount

◆ sDrawYSize()

int Sherlock::ImageFrame::sDrawYSize ( int  scaleVal) const

Return the frame height adjusted by a specified scale amount

◆ sDrawXOffset()

int Sherlock::ImageFrame::sDrawXOffset ( int  scaleVal) const

Return the frame offset x adjusted by a specified scale amount

◆ sDrawYOffset()

int Sherlock::ImageFrame::sDrawYOffset ( int  scaleVal) const

Return the frame offset y adjusted by a specified scale amount


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