src/Graphics/FontManager.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 03:33:35 +0200
branchnew_graphics
changeset 411 106aaf6eadfe
permissions -rw-r--r--
there's a grain of truth in the new graphics code now...
#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