mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
89 lines
2.8 KiB
C++
89 lines
2.8 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
* $URL$
|
|
* $Id$
|
|
*
|
|
*/
|
|
|
|
#ifndef KYRA_SCREEN_LOL_H
|
|
#define KYRA_SCREEN_LOL_H
|
|
|
|
#include "kyra/screen_v2.h"
|
|
|
|
namespace Kyra {
|
|
|
|
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);
|
|
int curDimIndex() { return _curDimIndex; }
|
|
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 fadeClearSceneWindow(int delay);
|
|
|
|
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 loadSpecialColours(uint8 *destPalette);
|
|
void loadColour254(uint8 *destPalEntry);
|
|
bool copyColour(int dstColorIndex, int srcColorIndex, uint32 time1, uint32 time2);
|
|
|
|
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;
|
|
int _dimLineCount;
|
|
|
|
private:
|
|
LoLEngine *_vm;
|
|
|
|
static const ScreenDim _screenDimTable[];
|
|
static const int _screenDimTableCount;
|
|
|
|
ScreenDim **_customDimTable;
|
|
int _curDimIndex;
|
|
|
|
uint8 *_levelOverlays[8];
|
|
};
|
|
|
|
} // end of namespace Kyra
|
|
|
|
#endif
|
|
|