Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 734 Bytes
// Copyright © 2008-2012 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef _FONTCACHE_H
#define _FONTCACHE_H
#include <map>
#include <string>
#include "RefCounted.h"
#include "text/TextureFont.h"
#include "text/VectorFont.h"
class FontCache {
FontCache() {}
RefCountedPtr<Text::TextureFont> GetTextureFont(const std::string &name);
RefCountedPtr<Text::VectorFont> GetVectorFont(const std::string &name);
FontCache(const FontCache &);
FontCache &operator=(const FontCache &);
std::map< std::string,RefCountedPtr<Text::TextureFont> > m_textureFonts;
std::map< std::string,RefCountedPtr<Text::VectorFont> > m_vectorFonts;
Something went wrong with that request. Please try again.