OpenMW
|
Wrapper class that constructs and provides access to the most commonly used resource subsystems. More...
#include <resourcesystem.hpp>
Public Member Functions | |
ResourceSystem (const VFS::Manager *vfs) | |
~ResourceSystem () | |
SceneManager * | getSceneManager () |
ImageManager * | getImageManager () |
NifFileManager * | getNifFileManager () |
KeyframeManager * | getKeyframeManager () |
void | updateCache (double referenceTime) |
void | addResourceManager (ResourceManager *resourceMgr) |
void | removeResourceManager (ResourceManager *resourceMgr) |
void | setExpiryDelay (double expiryDelay) |
How long to keep objects in cache after no longer being referenced. More... | |
const VFS::Manager * | getVFS () const |
Private Member Functions | |
ResourceSystem (const ResourceSystem &) | |
void | operator= (const ResourceSystem &) |
Private Attributes | |
std::auto_ptr< SceneManager > | mSceneManager |
std::auto_ptr< ImageManager > | mImageManager |
std::auto_ptr< NifFileManager > | mNifFileManager |
std::auto_ptr< KeyframeManager > | mKeyframeManager |
std::vector< ResourceManager * > | mResourceManagers |
const VFS::Manager * | mVFS |
Wrapper class that constructs and provides access to the most commonly used resource subsystems.
Resource::ResourceSystem::ResourceSystem | ( | const VFS::Manager * | vfs | ) |
Resource::ResourceSystem::~ResourceSystem | ( | ) |
|
private |
void Resource::ResourceSystem::addResourceManager | ( | ResourceManager * | resourceMgr | ) |
Add this ResourceManager to be handled by the ResourceSystem.
ImageManager * Resource::ResourceSystem::getImageManager | ( | ) |
KeyframeManager * Resource::ResourceSystem::getKeyframeManager | ( | ) |
NifFileManager * Resource::ResourceSystem::getNifFileManager | ( | ) |
SceneManager * Resource::ResourceSystem::getSceneManager | ( | ) |
const VFS::Manager * Resource::ResourceSystem::getVFS | ( | ) | const |
|
private |
void Resource::ResourceSystem::removeResourceManager | ( | ResourceManager * | resourceMgr | ) |
void Resource::ResourceSystem::setExpiryDelay | ( | double | expiryDelay | ) |
How long to keep objects in cache after no longer being referenced.
void Resource::ResourceSystem::updateCache | ( | double | referenceTime | ) |
Indicates to each resource manager to clear the cache, i.e. to drop cached objects that are no longer referenced.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |