ScummVM API documentation
TwinE::Redraw Class Reference

Public Member Functions

 Redraw (TwinEEngine *engine)
 
void setRenderText (const Common::String &text)
 
int32 addOverlay (OverlayType type, int16 info0, int16 x, int16 y, int16 info1, OverlayPosType posType, int16 lifeTime)
 
void posObjIncrust (OverlayListStruct *ptrdisp, int32 num)
 
void addRedrawArea (int32 left, int32 top, int32 right, int32 bottom)
 
void addPhysBox (const Common::Rect &rect)
 
void flipBoxes ()
 
void clsBoxes ()
 
void drawScene (bool bgRedraw)
 
void drawBubble (int32 actorIdx)
 
void sortDrawingList (DrawListStruct *list, int32 listSize) const
 

Public Attributes

bool _flagMCGA = false
 
bool _firstTime = false
 
IVec3 _projPosScreen
 
int32 _nbPhysBox = 0
 
int32 _nbOptPhysBox = 0
 
int _sceneryViewX = 0
 
int _sceneryViewY = 0
 
OverlayListStruct overlayList [10]
 

Member Function Documentation

◆ addRedrawArea()

void TwinE::Redraw::addRedrawArea ( int32  left,
int32  top,
int32  right,
int32  bottom 
)

Add a certain region to redraw list array

Parameters
leftstart width to redraw the region
topstart height to redraw the region
rightend width to redraw the region
bottomend height to redraw the region

◆ flipBoxes()

void TwinE::Redraw::flipBoxes ( )

Flip currentRedrawList regions in the screen This only updates small areas in the screen so few CPU processor is used

◆ clsBoxes()

void TwinE::Redraw::clsBoxes ( )

Blit/Update all screen regions in the currentRedrawList

◆ drawScene()

void TwinE::Redraw::drawScene ( bool  bgRedraw)

This is responsible for the entire game screen redraw

Parameters
bgRedrawtrue if we want to redraw background grid, false if we want to update certain screen areas

◆ drawBubble()

void TwinE::Redraw::drawBubble ( int32  actorIdx)

Draw dialogue sprite image

◆ sortDrawingList()

void TwinE::Redraw::sortDrawingList ( DrawListStruct list,
int32  listSize 
) const

Sort drawing list struct ordered as the first objects appear in the top left corner of the screen

Parameters
listdrawing list variable which contains information of the drawing objects
listSizenumber of drawing objects in the list

Member Data Documentation

◆ _firstTime

bool TwinE::Redraw::_firstTime = false

Request background redraw

◆ _nbPhysBox

int32 TwinE::Redraw::_nbPhysBox = 0

Current number of redraw regions in the screen

◆ _nbOptPhysBox

int32 TwinE::Redraw::_nbOptPhysBox = 0

Number of redraw regions in the screen


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