ScummVM API documentation
M4::M4Surface Class Reference
Inheritance diagram for M4::M4Surface:
M4::Buffer

Public Member Functions

 M4Surface (const Buffer &src)
 
 M4Surface (int sw, int sh)
 
 M4Surface (const byte *src, int sw, int sh)
 
void rleDraw (const byte *src, int x=0, int y=0)
 
void draw (const Buffer &src, int x, int y, bool forwards=true, const byte *depthCodes=nullptr, int srcDepth=-1, const byte *inverseColorTable=nullptr, const byte *palette=nullptr)
 
- Public Member Functions inherited from M4::Buffer
uint8 * getBasePtr (int x, int y)
 
const uint8 * getBasePtr (int x, int y) const
 

Additional Inherited Members

- Public Attributes inherited from M4::Buffer
int32 w
 
int32 h
 
uint8 * data
 
uint8 encoding
 
int32 stride
 

Member Function Documentation

◆ rleDraw()

void M4::M4Surface::rleDraw ( const byte *  src,
int  x = 0,
int  y = 0 
)

Simple drawing at a given position given source RLE data. In this simplified version, the sprite must be entirely on-screen

◆ draw()

void M4::M4Surface::draw ( const Buffer src,
int  x,
int  y,
bool  forwards = true,
const byte *  depthCodes = nullptr,
int  srcDepth = -1,
const byte *  inverseColorTable = nullptr,
const byte *  palette = nullptr 
)

Main drawing


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