ScummVM API documentation
text.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
23#ifndef ULTIMA2_GFX_TEXT_H
24#define ULTIMA2_GFX_TEXT_H
25
26#include "graphics/fonts/dosfont.h"
27#include "graphics/views/gfx_surface.h"
28
29namespace Ultima {
30namespace Ultima2 {
31namespace Gfx {
32
39enum TextColor {
40 TEXT_NORMAL = 0, // Most text
41 TEXT_TITLE = 1, // The name of the game on the title screen
42 TEXT_NAME = 2, // The character's name and the credits
43 TEXT_HEADING = 3, // Headings, and things chosen when creating a character
44 TEXT_HIGHLIGHT = 4, // An empty hit points or food value
45 TEXT_LIST = 5, // What's readied, and a name being typed in
46 TEXT_NUMBER = 6, // Numbers on the character's status screen
47 TEXT_REVERSE = 7 // Reverse video, which is drawn as the background color instead
48};
49
54extern byte textColor(TextColor color);
55
59extern void setReverseText(Graphics::Views::GfxSurface &s, bool on);
60
66public:
67 void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override;
68};
69
70} // namespace Gfx
71} // namespace Ultima2
72} // namespace Ultima
73
74#endif
Definition: dosfont.h:29
Definition: gfx_surface.h:34
Definition: text.h:65
void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override
Definition: surface.h:67