jubilant-funicular
|
#include <ResourceManager.h>
Static Public Member Functions | |
static Result< RawTexture > | getTexture (crstring imagePath, crvec2 dimensions) |
returns the resource with the given path, loading it if need be | |
static Result< TTF_Font * > | getFont (crstring fontPath, int fontSize) |
static void | destroy () |
Static Private Attributes | |
static std::map< std::string, RawTexture > | m_textureMap |
a map for associating a texture with the name of its file | |
static std::map< std::pair< std::string, int >, TTF_Font * > | m_fontMap |
Responsible for loading and caching external files, so they are only loaded in once during program execution. In general, you you probably don't want to use ResourceManager directly, but instead use ContextData.
Definition at line 16 of file ResourceManager.h.