|
bool | isLoaded (const std::string &path, const sf::IntRect &area=sf::IntRect()) const |
|
void | release (int id) override |
| Release a resource with identifier id. More...
|
|
int | getT404 () const |
|
| ResourceManager () |
| Class constructor.
|
|
| ~ResourceManager () |
| Class destructor.
|
|
int | addResource (const detail::tex_id &resource_id, const sf::Texture &resource) |
| Add resource to manager. More...
|
|
void | releaseAll (int id) |
| Release all resources with identifier id. More...
|
|
const sf::Texture & | get (int id) const |
| Get resource with identifier id. More...
|
|
sf::Texture & | get (int id) |
| Get resource with identifier id. More...
|
|
const detail::tex_id & | getId (int id) const |
| Get ResourceId of resource with identifier id. More...
|
|
bool | isLoaded (int id) const |
| Returns wether the resource with identifier id is loaded. More...
|
|
bool | isLoaded (const detail::tex_id &resource_id) const |
| Returns wether the resource with ResourceId resource_id is loaded. More...
|
|
bool | isLoaded (const detail::tex_id &resource_id, int &id) const |
| Returns wether the resource with ResourceId resource_id is loaded and if it is loaded, puts the ResourceManager id in id. More...
|
|
int | countResourceUsage (int id) const |
| Returns number of active requests for resource id. More...
|
|
int | size () const |
| Returns number of resources currently loaded. More...
|
|
int | resourceCount () const |
| Returns number of all resources ever loaded. More...
|
|
void | clear () |
| Release all resources.
|
|
|
static detail::tex_id | makeTexId (const std::string &path, const sf::IntRect &area) |
|
static TextureManager * | instance () |
| Get the singleton instance. More...
|
|
void hb::TextureManager::release |
( |
int |
id | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: