OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fontloader.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_FONTLOADER_H
2 #define OPENMW_COMPONENTS_FONTLOADER_H
3 
5 
6 namespace VFS
7 {
8  class Manager;
9 }
10 
11 namespace MyGUI
12 {
13  class ITexture;
14  class ResourceManualFont;
15 }
16 
17 namespace Gui
18 {
19 
20 
23  class FontLoader
24  {
25  public:
26  FontLoader (ToUTF8::FromType encoding, const VFS::Manager* vfs);
27  ~FontLoader();
28 
30  void loadAllFonts (bool exportToFile);
31 
32  private:
35 
36  std::vector<MyGUI::ITexture*> mTextures;
37  std::vector<MyGUI::ResourceManualFont*> mFonts;
38 
40  void loadFont (const std::string& fileName, bool exportToFile);
41 
42  FontLoader(const FontLoader&);
43  void operator=(const FontLoader&);
44  };
45 
46 }
47 
48 #endif
void loadFont(const std::string &fileName, bool exportToFile)
Definition: fontloader.cpp:210
FontLoader(ToUTF8::FromType encoding, const VFS::Manager *vfs)
Definition: fontloader.cpp:146
loads Morrowind's .fnt/.tex fonts for use with MyGUI and OSG
Definition: fontloader.hpp:23
void operator=(const FontLoader &)
FromType
Definition: to_utf8.hpp:11
ToUTF8::FromType mEncoding
Definition: fontloader.hpp:33
~FontLoader()
Definition: fontloader.cpp:155
void loadAllFonts(bool exportToFile)
Definition: fontloader.cpp:166
std::vector< MyGUI::ITexture * > mTextures
Definition: fontloader.hpp:36
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
std::vector< MyGUI::ResourceManualFont * > mFonts
Definition: fontloader.hpp:37
const VFS::Manager * mVFS
Definition: fontloader.hpp:34