ScummVM API documentation
Tot::GraphicsManager Class Reference

Public Member Functions

void init ()
 
void fixPalette (byte *palette, uint num=768)
 
byte * getPalette ()
 
void setPalette (byte palette[768], uint start=0, uint num=256)
 
void loadPaletteFromFile (Common::String image)
 
void turnLightOn ()
 
void totalFadeOut (byte red)
 
void partialFadeOut (byte numCol)
 
void totalFadeIn (uint paletteNumber, Common::String paletteName)
 
void redFadeIn (byte *palette)
 
void partialFadeIn (byte numCol)
 
void updatePalette (byte paletteIndex)
 
void fadePalettes (byte *fromPalette, byte *toPalette)
 
void copyPalette (byte *from, byte *to)
 
void putImg (uint coordx, uint coordy, byte *image, bool transparency=false)
 
void getImg (uint coordx1, uint coordy1, uint coordx2, uint coordy2, byte *image)
 
void putShape (uint coordx, uint coordy, byte *image)
 
void putImageArea (uint putcoordx, uint putcoordy, byte *backgroundScreen, byte *image)
 
void getImageArea (uint getcoordx1, uint getcoordy1, uint getcoordx2, uint getcoordy2, byte *backgroundScreen, byte *image)
 
void littText (const Common::String &str, int x, int y, uint32 color, Graphics::TextAlign align=Graphics::kTextAlignLeft, bool alignCenterY=false)
 
void euroText (const Common::String &str, int x, int y, uint32 color, Graphics::TextAlign align=Graphics::kTextAlignLeft, bool alignCenterY=false)
 
void biosText (const Common::String &str, int x, int y, uint32 color)
 
void clear ()
 
void clearActionLine ()
 
void writeActionLine (const Common::String &str)
 
void drawFullScreen (byte *screen)
 
void copyFromScreen (byte *&screen)
 
void drawScreen (byte *screen, bool offsetSize=true)
 
void restoreBackground ()
 
void restoreBackgroundArea (uint x, uint y, uint x2, uint y2)
 
void sceneTransition (bool fadeToBlack, byte *screen, byte effectNumber)
 
void sceneTransition (bool fadeToBlack, byte *screen)
 
void advancePaletteAnim ()
 
void printColor (int x, int y, int color)
 
void updateSceneArea (int speed=1)
 

Public Attributes

byte _paletteAnimFrame = 0
 
byte _palAnimStep = 0
 
byte _palAnimSlice [768] = { 0 }
 
byte _pal [768] = { 0 }
 
byte * _textAreaBackground = (byte *)malloc(kTextAreaSize)
 

Member Data Documentation

◆ _paletteAnimFrame

byte Tot::GraphicsManager::_paletteAnimFrame = 0

Aux for palette animation

◆ _palAnimStep

byte Tot::GraphicsManager::_palAnimStep = 0

Delay of palette animation

◆ _palAnimSlice

byte Tot::GraphicsManager::_palAnimSlice[768] = { 0 }

54 color palette slice.

◆ _pal

byte Tot::GraphicsManager::_pal[768] = { 0 }

General palette

◆ _textAreaBackground

byte* Tot::GraphicsManager::_textAreaBackground = (byte *)malloc(kTextAreaSize)

TextArea for animations text


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