src/Graphics/FontManager.hh
author nireco
Sat, 31 Jan 2009 12:33:08 +0200
changeset 443 5d1119729f58
parent 411 106aaf6eadfe
permissions -rw-r--r--
worm02 two pics to comment
#ifndef GRAPHICS_FONT_MANAGER_HH
#define GRAPHICS_FONT_MANAGER_HH

#include <ClanLib/display.h>

namespace graphics
{

/**
 * Loads fonts and lets other components use them
 */
class FontManager {
private:
    /**
     * Our resource manager for loading these
     */
    CL_ResourceManager &resources;

    /**
     * A basic monospace font
     */
    CL_Font simple_font;

public:
    /**
     * Load fonts
     */
    FontManager (CL_ResourceManager &resources) :
        resources(resources), simple_font("Font2", &resources)
    {

    }

    /**
     * Returns a CL_Font that can be used for drawing text
     */
    CL_Font& getSimpleFont (void) { return simple_font; }
};


}

#endif