terom@411: #ifndef GRAPHICS_FONT_MANAGER_HH terom@411: #define GRAPHICS_FONT_MANAGER_HH terom@411: terom@411: #include terom@411: terom@411: namespace graphics terom@411: { terom@411: terom@411: /** terom@411: * Loads fonts and lets other components use them terom@411: */ terom@411: class FontManager { terom@411: private: terom@411: /** terom@411: * Our resource manager for loading these terom@411: */ terom@411: CL_ResourceManager &resources; terom@411: terom@411: /** terom@411: * A basic monospace font terom@411: */ terom@411: CL_Font simple_font; terom@411: terom@411: public: terom@411: /** terom@411: * Load fonts terom@411: */ terom@411: FontManager (CL_ResourceManager &resources) : terom@411: resources(resources), simple_font("Font2", &resources) terom@411: { terom@411: terom@411: } terom@411: terom@411: /** terom@411: * Returns a CL_Font that can be used for drawing text terom@411: */ terom@411: CL_Font& getSimpleFont (void) { return simple_font; } terom@411: }; terom@411: terom@411: terom@411: } terom@411: terom@411: #endif