21 #ifndef TOT_GRAPHICS_H 22 #define TOT_GRAPHICS_H 24 #include "common/system.h" 26 #include "graphics/fonts/bgifont.h" 30 const int kTextAreaSize = 320 * 70 + 4;
38 void fixPalette(byte *palette, uint num = 768);
40 void setPalette(byte palette[768], uint start = 0, uint num = 256);
43 void totalFadeOut(byte red);
44 void partialFadeOut(byte numCol);
46 void redFadeIn(byte *palette);
47 void partialFadeIn(byte numCol);
48 void updatePalette(byte paletteIndex);
49 void fadePalettes(byte *fromPalette, byte *toPalette);
50 void copyPalette(byte *from, byte *to);
52 void putImg(uint coordx, uint coordy, byte *image,
bool transparency =
false);
53 void getImg(uint coordx1, uint coordy1, uint coordx2, uint coordy2, byte *image);
54 void putShape(uint coordx, uint coordy, byte *image);
55 void putImageArea(uint putcoordx, uint putcoordy, byte *backgroundScreen, byte *image);
56 void getImageArea(uint getcoordx1, uint getcoordy1, uint getcoordx2, uint getcoordy2, byte *backgroundScreen, byte *image);
60 void biosText(
const Common::String &str,
int x,
int y, uint32 color);
64 void clearActionLine();
67 void drawFullScreen(byte *screen);
68 void copyFromScreen(byte *&screen);
69 void drawScreen(byte *screen,
bool offsetSize =
true);
70 void restoreBackground();
71 void restoreBackgroundArea(uint x, uint y, uint x2, uint y2);
73 void sceneTransition(
bool fadeToBlack, byte *screen, byte effectNumber);
74 void sceneTransition(
bool fadeToBlack, byte *screen);
76 void advancePaletteAnim();
77 void printColor(
int x,
int y,
int color);
78 void updateSceneArea(
int speed = 1);
102 signed char fadeData[256][256];
Definition: graphics.h:32
TextAlign
Definition: font.h:48
byte _paletteAnimFrame
Definition: graphics.h:83
Align the text to the left.
Definition: font.h:51
byte _palAnimSlice[768]
Definition: graphics.h:91
byte _palAnimStep
Definition: graphics.h:87
byte _pal[768]
Definition: graphics.h:95
byte * _textAreaBackground
Definition: graphics.h:100