diff options
Diffstat (limited to 'gob/palanim.h')
-rw-r--r-- | gob/palanim.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gob/palanim.h b/gob/palanim.h index 9bc4ff6641..0f2cfcc3c4 100644 --- a/gob/palanim.h +++ b/gob/palanim.h @@ -24,11 +24,22 @@ namespace Gob { -extern int16 pal_fadeValue; +class PalAnim { +public: + int16 fadeValue; -char pal_fadeColor(char from, char to); -char pal_fadeStep(int16 oper); // oper == 0 - fade all colors, 1, 2, 3 - red,green, blue -void pal_fade(PalDesc * palDesc, int16 fade, int16 all); + char fadeColor(char from, char to); + char fadeStep(int16 oper); // oper == 0 - fade all colors, 1, 2, 3 - red,green, blue + void fade(Video::PalDesc * palDesc, int16 fade, int16 all); + + PalAnim(GobEngine *vm); + +protected: + byte toFadeRed[256]; + byte toFadeGreen[256]; + byte toFadeBlue[256]; + GobEngine *_vm; +}; } // End of namespace Gob |