ScummVM API documentation
rendermode.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 COMMON_RENDERMODE_H
23 #define COMMON_RENDERMODE_H
24 
25 #include "common/scummsys.h"
26 
27 namespace Common {
28 
38 class String;
39 
48 enum RenderMode {
49  kRenderDefault = 0,
50  kRenderVGA = 1,
51  kRenderEGA = 2,
52  kRenderCGA = 3,
53  kRenderHercG = 4,
54  kRenderHercA = 5,
55  kRenderAmiga = 6,
56  kRenderFMTowns = 7,
57  kRenderPC9821 = 8,
58  kRenderPC9801 = 9,
59  kRenderApple2GS = 10,
60  kRenderAtariST = 11,
61  kRenderMacintosh = 12,
62  kRenderMacintoshBW = 13,
63  kRenderCGAComp = 14,
64  kRenderCGA_BW = 15,
65  kRenderCPC = 16,
66  kRenderZX = 17,
67  kRenderC64 = 18
68 };
69 
71  const char *code;
72  const char *description;
73  RenderMode id;
74 };
75 
76 extern const RenderModeDescription g_renderModes[];
77 
79 extern RenderMode parseRenderMode(const String &str);
80 extern const char *getRenderModeCode(RenderMode id);
81 extern const char *getRenderModeDescription(RenderMode id);
82 
83 // TODO: Rename the following to something better; also, document it
84 extern String renderMode2GUIO(RenderMode id);
85 
86 // TODO: Rename the following to something better; also, document it
87 extern String allRenderModesGUIOs();
88 
91 } // End of namespace Common
92 
93 #endif
Definition: str.h:59
RenderMode
Definition: rendermode.h:48
RenderMode parseRenderMode(const String &str)
Definition: algorithm.h:29
Definition: rendermode.h:70