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 
39 namespace Graphics {
40 class Font;
41 }
42 
43 namespace Tetraedge {
44 
49 class TeFont3 : public TeIFont {
50 public:
51  TeFont3();
52  virtual ~TeFont3();
53 
54  bool load(const Common::Path &path);
55  void unload();
56 
57 private:
58 
59  TeIntrusivePtr<Te3DTexture> getFontSizeData(int size) const {
60  return _fontSizeData[size];
61  }
62 
63  Graphics::Font *getAtSize(uint size) override;
64  Common::File _fontFile;
66  Common::Path _loadedPath;
68 };
69 
70 } // end namespace Tetraedge
71 
72 #endif // TETRAEDGE_TE_TE_FONT3_H
Definition: font.h:82
Definition: detection.h:27
Definition: path.h:52
Definition: te_i_font.h:37
Definition: hashmap.h:85
Definition: file.h:47
Definition: formatinfo.h:28
Definition: te_font3.h:49
Definition: te_intrusive_ptr.h:31