FIFE
2008.0
|
#include <resourcemanager.h>
Public Member Functions | |
IResourceManager () | |
virtual size_t | getMemoryUsed () const =0 |
virtual size_t | getTotalResourcesCreated () const =0 |
virtual size_t | getTotalResourcesLoaded () const =0 |
virtual size_t | getTotalResources () const =0 |
An interface for managing resources.
Definition at line 49 of file resourcemanager.h.
|
inline |
Default constructor.
Definition at line 54 of file resourcemanager.h.
|
pure virtual |
Gets the total amount of memory used by resources
This function uses the IResource's getSize() function to calculate the total memory used. It does not include memory used by the internal resource manager book keeping structures. This value is only accurate if the resources getSize() function returns an accurate result.
Implemented in FIFE::SoundClipManager, and FIFE::ImageManager.
|
pure virtual |
Returns the number of defined resources
Gets the total number of resources managed by the manager.
Implemented in FIFE::SoundClipManager, and FIFE::ImageManager.
|
pure virtual |
Returns the number of unloaded resources
Gets the total number of resources created but not loaded. These resources have been defined in the resource manager but have yet to be loaded from disk.
Implemented in FIFE::SoundClipManager, and FIFE::ImageManager.
|
pure virtual |
Returns the number of loaded resources
Gets the total number of resources created and loaded. These resources have been defined in the resource manager have been loaded from disk.
Implemented in FIFE::SoundClipManager, and FIFE::ImageManager.