ScummVM API documentation
fonts.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 WATCHMAKER_FONTS_H
23
#define WATCHMAKER_FONTS_H
24
25
#include "common/stream.h"
26
#include "watchmaker/renderer.h"
27
#include "watchmaker/sysdef.h"
28
29
namespace
Watchmaker
{
30
31
struct
SFont
{
32
uint16 *table =
nullptr
;
33
int32 color[MAX_FONT_COLORS] = {};
34
};
35
36
class
WGame
;
37
class
Fonts
{
38
Common::Array<uint16 *>
_tables;
39
uint16 *setupFontTable(
Common::SeekableReadStream
&stream);
40
void
loadFont(
WGame
&game,
struct
SFont
*f,
const
Common::String
&n);
41
public
:
42
SFont
*fontForKind(FontKind);
43
SFont
StandardFont;
44
SFont
ComputerFont;
45
SFont
PDAFont;
46
~
Fonts
();
47
48
void
loadFonts(
WGame
&game,
WindowInfo
&windowInfo);
49
void
getTextDim(
const
char
*s, FontKind font,
int
*x,
int
*y);
50
};
51
52
}
// End of namespace Watchmaker
53
54
#endif // WATCHMAKER_FONTS_H
55
Watchmaker
Definition:
2d_stuff.h:30
Common::String
Definition:
str.h:59
Common::Array
Definition:
array.h:52
Common::SeekableReadStream
Definition:
stream.h:745
Watchmaker::WindowInfo
Definition:
renderer.h:39
Watchmaker::Fonts
Definition:
fonts.h:37
Watchmaker::WGame
Definition:
game.h:56
Watchmaker::SFont
Definition:
fonts.h:31
engines
watchmaker
fonts.h
Generated on Mon Dec 23 2024 09:09:41 for ScummVM API documentation by
1.8.13