ScummVM API documentation
Lab::Utils Class Reference

Public Member Functions

 Utils (LabEngine *vm)
 
uint16 scaleX (uint16 x)
 
uint16 scaleY (uint16 y)
 
Common::Rect rectScale (int16 x1, int16 y1, int16 x2, int16 y2)
 
int16 vgaScaleX (int16 x)
 
int16 vgaScaleY (int16 y)
 
Common::Rect vgaRectScale (int16 x1, int16 y1, int16 x2, int16 y2)
 
uint16 svgaCord (uint16 cord)
 
uint16 mapScaleX (uint16 x)
 
uint16 mapScaleY (uint16 y)
 
Common::Rect mapRectScale (int16 x1, int16 y1, int16 x2, int16 y2)
 
Common::Point vgaUnscale (Common::Point pos)
 
void unDiff (byte *newBuf, byte *oldBuf, Common::File *sourceFile, uint16 bytesPerRow, bool isVertical)
 
void runLengthDecode (byte *dest, Common::File *sourceFile)
 
void verticalRunLengthDecode (byte *dest, Common::File *sourceFile, uint16 bytesPerRow)
 
void setBytesPerRow (int num)
 
uint16 getRandom (uint16 max)
 

Public Attributes

Common::RandomSource _rnd
 

Member Function Documentation

◆ scaleX()

uint16 Lab::Utils::scaleX ( uint16  x)

Scales the x co-ordinates to that of the new display. In the room parser file, co-ordinates are set up on a 360x336 display.

◆ scaleY()

uint16 Lab::Utils::scaleY ( uint16  y)

Scales the y co-ordinates to that of the new display. In the room parser file, co-ordinates are set up on a 368x336 display.

◆ vgaScaleX()

int16 Lab::Utils::vgaScaleX ( int16  x)

Scales the VGA x coords to SVGA if necessary; otherwise, returns VGA coords.

◆ vgaScaleY()

int16 Lab::Utils::vgaScaleY ( int16  y)

Scales the VGA y coords to SVGA if necessary; otherwise, returns VGA coords.

◆ vgaUnscale()

Common::Point Lab::Utils::vgaUnscale ( Common::Point  pos)

Converts SVGA coords to VGA if necessary, otherwise returns VGA coords.

◆ unDiff()

void Lab::Utils::unDiff ( byte *  newBuf,
byte *  oldBuf,
Common::File sourceFile,
uint16  bytesPerRow,
bool  isVertical 
)

Does the undiffing between the bitmaps.


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