ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
display.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  * Based on the original sources
22  * Faery Tale II -- The Halls of the Dead
23  * (c) 1993-1996 The Wyrmkeep Entertainment Co.
24  */
25 
26 #ifndef SAGA2_DISPLAY_H
27 #define SAGA2_DISPLAY_H
28 
29 namespace Saga2 {
30 
31 /* ===================================================================== *
32  Types
33  * ===================================================================== */
34 
35 enum DisplayDisabledBecause {
36  kDisGameNotInitialized = 1 << 0,
37  kDisPlayingVideo = 1 << 1,
38  kDisGraphicsInit = 1 << 2,
39  kDisGameSuspended = 1 << 3,
40  kDisGameEnded = 1 << 4
41 };
42 
43 /* ===================================================================== *
44  Prototypes
45  * ===================================================================== */
46 void endGame();
47 
48 // ------------------------------------------------------------------------
49 // Display initialization
50 
51 void niceScreenStartup();
52 void initBackPanel();
53 
54 // ------------------------------------------------------------------------
55 // Display disable flags
56 
57 void displayEnable(DisplayDisabledBecause reason, bool onOff = true);
58 bool displayEnabled(uint32 mask = 0xFFFFFFFF);
59 bool displayOkay();
60 void mainEnable();
61 void mainDisable();
62 
63 inline void displayDisable(DisplayDisabledBecause reason, bool onOff = false) {
64  displayEnable(reason, onOff);
65 }
66 
67 // ------------------------------------------------------------------------
68 // palette changes can be disabled
69 
70 void enablePaletteChanges();
71 void disablePaletteChanges();
72 bool paletteChangesEnabled();
73 
74 // ------------------------------------------------------------------------
75 // Screen refreshes
76 void delayedDisplayEnable();
77 void externalPaletteIntrusion();
78 void reDrawScreen();
79 void showLoadMessage();
80 
81 // ------------------------------------------------------------------------
82 // Video mode save and restore for videos
83 
84 void pushVidState();
85 void popVidState();
86 
87 // ------------------------------------------------------------------------
88 // The display may be disabled for several reasons these track them
89 void blackOut();
90 
91 } // end of namespace Saga2
92 
93 #endif //DISPLAY_H
Definition: actor.h:32