ScummVM API documentation
screenfx.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef MADE_SCREENFX_H
23#define MADE_SCREENFX_H
24
25#include "common/scummsys.h"
26
27namespace Graphics {
28struct Surface;
29}
30
31namespace Made {
32
33class Screen;
34
36 bool _active;
37 byte *_palette, *_newPalette;
38 int _colorCount;
39 int16 _value, _maxValue, _incr;
40};
41
43public:
44 ScreenEffects(Screen *screen);
46 void run(int16 effectNum, Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
47 void flash(int count, byte *palette, int colorCount);
48private:
49 Screen *_screen;
50 byte *_fxPalette;
51 static const byte vfxOffsTable[64];
52 static const byte vfxOffsIndexTable[8];
53 const byte *vfxOffsTablePtr;
54 int16 vfxX1, vfxY1, vfxWidth, vfxHeight;
55 BlendedPaletteStatus _blendedPaletteStatus;
56
57 void setPalette(byte *palette);
58 void setBlendedPalette(byte *palette, byte *newPalette, int colorCount, int16 value, int16 maxValue);
59 void startBlendedPalette(byte *palette, byte *newPalette, int colorCount, int16 maxValue);
60 void stepBlendedPalette();
61 void copyFxRect(Graphics::Surface *surface, int16 x1, int16 y1, int16 x2, int16 y2);
62
63 void vfx00(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
64 void vfx01(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
65 void vfx02(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
66 void vfx03(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
67 void vfx04(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
68 void vfx05(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
69 void vfx06(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
70 void vfx07(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
71 void vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
72 void vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
73 void vfx10(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
74 void vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
75 void vfx12(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
76 void vfx13(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
77 void vfx14(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
78 void vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
79 void vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
80 void vfx17(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
81 void vfx18(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
82 void vfx19(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
83 void vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
84};
85
86} // End of namespace Made
87
88#endif /* MADE_H */
Definition: screenfx.h:42
Definition: screen.h:76
Definition: formatinfo.h:28
Definition: console.h:27
Definition: surface.h:67
Definition: screenfx.h:35
Definition: atari-screen.h:58