ScummVM API documentation
graphics.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 GROOVIE_GRAPHICS_H
23
#define GROOVIE_GRAPHICS_H
24
25
#include "graphics/surface.h"
26
27
namespace
Groovie
{
28
29
class
GroovieEngine;
30
31
class
GraphicsMan
{
32
public
:
33
GraphicsMan
(
GroovieEngine
*vm);
34
~
GraphicsMan
();
35
36
// Buffers
37
void
update();
38
void
change();
39
void
mergeFgAndBg();
40
void
switchToFullScreen(
bool
fullScreen);
41
bool
isFullScreen() {
return
(_foreground.
h
== 480); }
42
void
updateScreen(
Graphics::Surface
*source);
43
void
saveScreen();
44
void
restoreScreen();
45
Graphics::Surface
_foreground;
// The main surface that most things are drawn to
46
Graphics::Surface
_background;
// Used occasionally, mostly (only?) in puzzles
47
Graphics::Surface
_savedground;
// Buffer to save and restore the current screen. Used when opening the gamebook in 11H
48
49
// Palette fading
50
bool
isFading();
51
void
fadeIn(byte *pal);
52
void
fadeOut();
53
54
private
:
55
GroovieEngine
*_vm;
56
57
bool
_changed;
58
59
// Palette fading
60
void
applyFading(
int
step);
61
int
_fading;
62
byte _paletteFull[256 * 3];
63
uint32 _fadeStartTime;
64
};
65
66
}
// End of Groovie namespace
67
68
#endif // GROOVIE_GRAPHICS_H
Graphics::Surface
Definition:
surface.h:67
Groovie::GroovieEngine
Definition:
groovie.h:118
Graphics::Surface::h
int16 h
Definition:
surface.h:76
Groovie::GraphicsMan
Definition:
graphics.h:31
Groovie
Definition:
cursor.h:32
engines
groovie
graphics.h
Generated on Wed Dec 18 2024 09:03:36 for ScummVM API documentation by
1.8.13