ScummVM API documentation
interface.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 TWINE_INTERFACE_H
23#define TWINE_INTERFACE_H
24
25#include "common/scummsys.h"
26#include "common/rect.h"
27
28namespace Graphics {
29class ManagedSurface;
30}
31
32namespace TwinE {
33
34class TwinEEngine;
35
36class Interface {
37private:
38 TwinEEngine *_engine;
39 Common::Rect _memoClip;
40
41public:
42 Interface(TwinEEngine *engine);
43 // ClipXmin, ClipXmax, ClipYmin, ClipYmax
44 Common::Rect _clip { 0, 0, 0, 0 };
45 bool _animateTexture = false; // lba2: AnimateTexture
46
55 bool drawLine(int32 startWidth, int32 startHeight, int32 endWidth, int32 endHeight, uint8 lineColor);
56
67 void shadeBox(const Common::Rect &rect, int32 colorAdj);
68
69 void box(const Common::Rect &rect, uint8 colorIndex);
70
71 bool setClip(const Common::Rect &rect);
72 void memoClip(); // saveTextWindow
73 void restoreClip(); // loadSavedTextWindow
74 void unsetClip();
75};
76
77} // namespace TwinE
78
79#endif
Definition: managed_surface.h:51
Definition: interface.h:36
void blitBox(const Common::Rect &rect, const Graphics::ManagedSurface &source, Graphics::ManagedSurface &dest)
void shadeBox(const Common::Rect &rect, int32 colorAdj)
bool drawLine(int32 startWidth, int32 startHeight, int32 endWidth, int32 endHeight, uint8 lineColor)
Definition: twine.h:207
Definition: formatinfo.h:28
Definition: rect.h:536