ScummVM API documentation
te_font3.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 TETRAEDGE_TE_TE_FONT3_H
23#define TETRAEDGE_TE_TE_FONT3_H
24
25#include "common/file.h"
26#include "common/str.h"
27#include "common/path.h"
28#include "common/types.h"
29#include "common/hashmap.h"
30#include "common/rect.h"
31
32#include "tetraedge/te/te_resource.h"
33#include "tetraedge/te/te_vector3f32.h"
34#include "tetraedge/te/te_image.h"
35#include "tetraedge/te/te_intrusive_ptr.h"
36#include "tetraedge/te/te_3d_texture.h"
37#include "tetraedge/te/te_i_font.h"
38
39namespace Graphics {
40class Font;
41}
42
43namespace Tetraedge {
44
49class TeFont3 : public TeIFont {
50public:
51 TeFont3();
52 virtual ~TeFont3();
53
54 bool load(const Common::Path &path);
55 bool load(const TetraedgeFSNode &node);
56 void unload();
57
58private:
59
60 TeIntrusivePtr<Te3DTexture> getFontSizeData(int size) const {
61 return _fontSizeData[size];
62 }
63
64 Graphics::Font *getAtSize(uint size) override;
67 Common::Path _loadedPath;
69};
70
71} // end namespace Tetraedge
72
73#endif // TETRAEDGE_TE_TE_FONT3_H
Definition: path.h:52
Definition: font.h:83
Definition: te_font3.h:49
Definition: te_i_font.h:37
Definition: te_intrusive_ptr.h:31
Definition: tetraedge.h:65
Definition: formatinfo.h:28