OpenMW
|
Handles loading/caching of Images. More...
#include <imagemanager.hpp>
Public Member Functions | |
ImageManager (const VFS::Manager *vfs) | |
~ImageManager () | |
osg::ref_ptr< osg::Image > | getImage (const std::string &filename) |
osg::Image * | getWarningImage () |
Public Member Functions inherited from Resource::ResourceManager | |
ResourceManager (const VFS::Manager *vfs) | |
virtual | ~ResourceManager () |
virtual void | updateCache (double referenceTime) |
Clear cache entries that have not been referenced for longer than expiryDelay. More... | |
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 | |
ImageManager (const ImageManager &) | |
void | operator= (const ImageManager &) |
Private Attributes | |
osg::ref_ptr< osg::Image > | mWarningImage |
osg::ref_ptr< osgDB::Options > | mOptions |
Additional Inherited Members | |
Protected Attributes inherited from Resource::ResourceManager | |
const VFS::Manager * | mVFS |
osg::ref_ptr < Resource::ObjectCache > | mCache |
double | mExpiryDelay |
Handles loading/caching of Images.
Resource::ImageManager::ImageManager | ( | const VFS::Manager * | vfs | ) |
Resource::ImageManager::~ImageManager | ( | ) |
|
private |
osg::ref_ptr< osg::Image > Resource::ImageManager::getImage | ( | const std::string & | filename | ) |
Create or retrieve an Image Returns the dummy image if the given image is not found.
osg::Image * Resource::ImageManager::getWarningImage | ( | ) |
|
private |
|
private |
|
private |