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
29
namespace
Ultima {
30
namespace
Ultima2 {
31
namespace
Gfx {
32
39
enum
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
54
extern
byte
textColor(TextColor color);
55
59
extern
void
setReverseText(
Graphics::Views::GfxSurface
&s,
bool
on);
60
65
class
TextFont
:
public
Graphics::DosFont
{
66
public
:
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
Graphics::DosFont
Definition:
dosfont.h:29
Graphics::Views::GfxSurface
Definition:
gfx_surface.h:34
Ultima::Ultima2::Gfx::TextFont
Definition:
text.h:65
Ultima::Ultima2::Gfx::TextFont::drawChar
void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override
Graphics::Surface
Definition:
surface.h:67
engines
ultima
ultima2
gfx
text.h
Generated on Sun Nov 22 2026 09:31:26 for ScummVM API documentation by
1.9.4