ScummVM API documentation
Sword2::Screen Class Reference

Public Member Functions

 Screen (Sword2Engine *vm, int16 width, int16 height)
 
void pauseScreen (bool pause)
 
int8 getRenderLevel ()
 
void setRenderLevel (int8 level)
 
byte * getScreen ()
 
byte * getPalette ()
 
ScreenInfogetScreenInfo ()
 
int16 getScreenWide ()
 
int16 getScreenDeep ()
 
uint32 getCurBgp0 ()
 
uint32 getCurBgp1 ()
 
uint32 getCurBack ()
 
uint32 getCurSort ()
 
uint32 getCurFore ()
 
uint32 getCurFgp0 ()
 
uint32 getCurFgp1 ()
 
uint32 getFps ()
 
uint32 getLargestLayerArea ()
 
uint32 getLargestSpriteArea ()
 
char * getLargestLayerInfo ()
 
char * getLargestSpriteInfo ()
 
void setNeedFullRedraw ()
 
void clearScene ()
 
void resetRenderLists ()
 
void setLocationMetrics (uint16 w, uint16 h)
 
int32 initializeBackgroundLayer (byte *parallax)
 
int32 initializePsxParallaxLayer (byte *parallax)
 
int32 initializePsxBackgroundLayer (byte *parallax)
 
void closeBackgroundLayer ()
 
void initializeRenderCycle ()
 
void initBackground (int32 res, int32 new_palette)
 
void initPsxBackground (int32 res, int32 new_palette)
 
void registerFrame (byte *ob_mouse, byte *ob_graph, byte *ob_mega)
 
void setScrollFraction (uint8 f)
 
void setScrollTarget (int16 x, int16 y)
 
void setScrolling ()
 
void setFullPalette (int32 palRes)
 
void setPalette (int16 startEntry, int16 noEntries, byte *palette, uint8 setNow)
 
void setSystemPalette (const byte *colors, uint start, uint num)
 
uint8 quickMatch (uint8 r, uint8 g, uint8 b)
 
int32 fadeUp (float time=0.75f)
 
int32 fadeDown (float time=0.75f)
 
uint8 getFadeStatus ()
 
void dimPalette (bool dim)
 
void waitForFade ()
 
void fadeServer ()
 
void updateDisplay (bool redrawScene=true)
 
void displayMsg (byte *text, int time)
 
int32 createSurface (SpriteInfo *s, byte **surface)
 
void drawSurface (SpriteInfo *s, byte *surface, Common::Rect *clipRect=nullptr)
 
void deleteSurface (byte *surface)
 
int32 drawSprite (SpriteInfo *s)
 
void scaleImageFast (byte *dst, uint16 dstPitch, uint16 dstWidth, uint16 dstHeight, byte *src, uint16 srcPitch, uint16 srcWidth, uint16 srcHeight)
 
void scaleImageGood (byte *dst, uint16 dstPitch, uint16 dstWidth, uint16 dstHeight, byte *src, uint16 srcPitch, uint16 srcWidth, uint16 srcHeight, byte *backBuf, int16 bbXPos, int16 bbYPos)
 
void updateRect (Common::Rect *r)
 
int32 openLightMask (SpriteInfo *s)
 
int32 closeLightMask ()
 
void buildDisplay ()
 
void plotPoint (int x, int y, uint8 color)
 
void drawLine (int x0, int y0, int x1, int y1, uint8 color)
 
void rollCredits ()
 
void splashScreen ()
 
void setPsxScrCache (byte *psxScrCache, uint8 level)
 
byte * getPsxScrCache (uint8 level)
 
bool getPsxScrCacheStatus (uint8 level)
 
void flushPsxScrCache ()
 

Static Public Member Functions

static uint32 decompressHIF (byte *src, byte *dst, uint32 *skipData=nullptr)
 
static void resizePsxSprite (byte *dst, byte *src, uint16 destW, uint16 destH)
 
static void recomposePsxSprite (SpriteInfo *s)
 
static void recomposeCompPsxSprite (SpriteInfo *s)
 

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