#include <display_cache.h>

Public Member Functions

virtual ~DisplayCache ()
 
virtual Resource< Fontget_font (Canvas &canvas, const std::string &family_name, const FontDescription &desc)=0
 
virtual Resource< Imageget_image (Canvas &canvas, const std::string &id)=0
 
virtual Resource< Spriteget_sprite (Canvas &canvas, const std::string &id)=0
 
virtual Resource< Textureget_texture (GraphicContext &gc, const std::string &id)=0
 

Static Public Member Functions

static DisplayCacheget (const ResourceManager &resources)
 
static void set (ResourceManager &resources, const std::shared_ptr< DisplayCache > &cache)
 

Constructor & Destructor Documentation

virtual clan::DisplayCache::~DisplayCache ( )
inlinevirtual

Member Function Documentation

static DisplayCache& clan::DisplayCache::get ( const ResourceManager resources)
static
virtual Resource<Font> clan::DisplayCache::get_font ( Canvas canvas,
const std::string family_name,
const FontDescription desc 
)
pure virtual
virtual Resource<Image> clan::DisplayCache::get_image ( Canvas canvas,
const std::string id 
)
pure virtual
virtual Resource<Sprite> clan::DisplayCache::get_sprite ( Canvas canvas,
const std::string id 
)
pure virtual
virtual Resource<Texture> clan::DisplayCache::get_texture ( GraphicContext gc,
const std::string id 
)
pure virtual
static void clan::DisplayCache::set ( ResourceManager resources,
const std::shared_ptr< DisplayCache > &  cache 
)
static

The documentation for this class was generated from the following file: