GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FontLoader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_FONTLOADER_HPP
2 #define RADIX_FONTLOADER_HPP
3 
4 #include <map>
5 #include <string>
6 
8 
9 namespace radix {
10 
11 class FontLoader {
12 public:
13  static Font& getFont(const std::string &path);
14 private:
15  static Font loadFont(const std::string &path, const std::string &name);
16  static std::map<std::string, Font> fontCache;
17 };
18 
19 } /* namespace radix */
20 
21 #endif /* RADIX_FONTLOADER_HPP */
Definition: Font.hpp:11
Definition: GameController.hpp:7
static std::map< std::string, Font > fontCache
Definition: FontLoader.hpp:16
static Font loadFont(const std::string &path, const std::string &name)
Definition: FontLoader.cpp:26
static Font & getFont(const std::string &path)
Definition: FontLoader.cpp:14
Definition: FontLoader.hpp:11