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 addRedrawArea (const Common::Rect &rect)
 
void flipRedrawAreas ()
 
void blitBackgroundAreas ()
 
void redrawEngineActions (bool bgRedraw)
 
void drawBubble (int32 actorIdx)
 
void sortDrawingList (DrawListStruct *list, int32 listSize) const
 

Public Attributes

bool _flagMCGA = false
 
bool _firstTime = false
 
int32 _currNumOfRedrawBox = 0
 
int32 _numOfRedrawBox = 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

◆ flipRedrawAreas()

void TwinE::Redraw::flipRedrawAreas ( )

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

◆ blitBackgroundAreas()

void TwinE::Redraw::blitBackgroundAreas ( )

Blit/Update all screen regions in the currentRedrawList

◆ redrawEngineActions()

void TwinE::Redraw::redrawEngineActions ( 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

◆ _currNumOfRedrawBox

int32 TwinE::Redraw::_currNumOfRedrawBox = 0

Current number of redraw regions in the screen

◆ _numOfRedrawBox

int32 TwinE::Redraw::_numOfRedrawBox = 0

Number of redraw regions in the screen


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