diff options
author | Paul Gilbert | 2012-09-10 20:26:24 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-10 20:26:24 +1000 |
commit | 7b15f9ae3c326419bbba13f375762da7fd6d18b1 (patch) | |
tree | 75700e284c34c458fd79f567fe32e09d78941e3f /engines/hopkins/graphics.h | |
parent | 14cd54fc398c312566ea2dec3a91d775f2159f0f (diff) | |
download | scummvm-rg350-7b15f9ae3c326419bbba13f375762da7fd6d18b1.tar.gz scummvm-rg350-7b15f9ae3c326419bbba13f375762da7fd6d18b1.tar.bz2 scummvm-rg350-7b15f9ae3c326419bbba13f375762da7fd6d18b1.zip |
HOPKINS: Implemented some of the fade methods
Diffstat (limited to 'engines/hopkins/graphics.h')
-rw-r--r-- | engines/hopkins/graphics.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/engines/hopkins/graphics.h b/engines/hopkins/graphics.h index a3257f3044..9151e62684 100644 --- a/engines/hopkins/graphics.h +++ b/engines/hopkins/graphics.h @@ -31,6 +31,7 @@ namespace Hopkins { #define PALETTE_SIZE 256 +#define PALETTE_BLOCK_SIZE (PALETTE_SIZE * 3) struct RGB8 { byte r; @@ -52,8 +53,8 @@ public: byte *PAL_PIXELS; int nbrligne; byte TABLE_COUL[256]; - byte cmap[PALETTE_SIZE * 3]; - byte Palette[PALETTE_SIZE * 3]; + byte cmap[PALETTE_BLOCK_SIZE]; + byte Palette[PALETTE_BLOCK_SIZE]; bool Linear; Graphics::Surface *VideoPtr; Graphics::Surface VESA_SCREEN; @@ -70,7 +71,8 @@ public: int nbrligne2; int Agr_x, Agr_y; int Agr_Flag_x, Agr_Flag_y; - + int FADESPD; + byte PALPCX[800]; public: GraphicsManager(); ~GraphicsManager(); @@ -92,6 +94,15 @@ public: void m_scroll2A(const byte *surface, int xs, int ys, int width, int height, int destX, int destY); void m_scroll16(const byte *surface, int xs, int ys, int width, int height, int destX, int destY); void m_scroll16A(const byte *surface, int xs, int ys, int width, int height, int destX, int destY); + void fade_in(const byte *palette, int step, const byte *surface); + void fade_out(const byte *palette, int step, const byte *surface); + void FADE_INS(); + void FADE_OUTS(); + void FADE_INW(); + void FADE_OUTW(); + void setpal_vga256(const byte *palette); + void CHANGE_PALETTE(const byte *palette); + void DD_VBL(); }; class ObjectManager { |