From ff268e8fd5997b60a035147bb9adbf1ead100d49 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 18 Jan 2009 17:04:24 +0000 Subject: LOL: Some drawing code and some opcodes so that the first scene will show up. Playing is not possible. This is still somewhat messy since a lot of stuff hasn't been figured out yet. svn-id: r35903 --- engines/kyra/screen_lol.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'engines/kyra/screen_lol.h') diff --git a/engines/kyra/screen_lol.h b/engines/kyra/screen_lol.h index bba748813a..a4c7d8c749 100644 --- a/engines/kyra/screen_lol.h +++ b/engines/kyra/screen_lol.h @@ -35,17 +35,46 @@ class LoLEngine; class Screen_LoL : public Screen_v2 { public: Screen_LoL(LoLEngine *vm, OSystem *system); + ~Screen_LoL(); void setScreenDim(int dim); const ScreenDim *getScreenDim(int dim); + void modifyScreenDim(int dim, int x, int y, int w, int h); + void clearDim(int dim); + void clearCurDim(); void fprintString(const char *format, int x, int y, uint8 col1, uint8 col2, uint16 flags, ...); void fprintStringIntro(const char *format, int x, int y, uint8 c1, uint8 c2, uint8 c3, uint16 flags, ...); + + void drawGridBox(int x, int y, int w, int h, int col); + + void fadeToBlack(int delay=0x54, const UpdateFunctor *upFunc = 0); + void setPaletteBrightness(uint8 *palDst, int brightness, int modifier); + void generateBrightnessPalette(uint8 *palSrc, uint8 *palDst, int brightness, int modifier); + void setPaletteColoursSpecial(uint8 *palette); + + void generateGrayOverlay(const uint8 *srcPal, uint8 *grayOverlay, int factor, int addR, int addG, int addB, int lastColor, bool skipSpecialColours); + uint8 *generateLevelOverlay(const uint8 *srcPal, uint8 *ovl, int opColor, int weight); + + uint8 *getLevelOverlay(int index) { return _levelOverlays[index]; } + + uint8 getShapePaletteSize(const uint8 *shp); + + uint8 *_paletteOverlay1; + uint8 *_paletteOverlay2; + uint8 *_grayOverlay; + int _fadeFlag; + int _drawGuiFlag; + private: LoLEngine *_vm; static const ScreenDim _screenDimTable[]; static const int _screenDimTableCount; + + ScreenDim **_customDimTable; + + uint8 *_levelOverlays[8]; }; } // end of namespace Kyra -- cgit v1.2.3