FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <resource.h>
Public Types | |
enum | ResourceState { RES_INVALID = 0, RES_NOT_LOADED, RES_LOADED } |
Public Member Functions | |
IResource (const std::string &name, IResourceLoader *loader=0) | |
virtual | ~IResource () |
virtual const std::string & | getName () |
ResourceHandle | getHandle () |
virtual ResourceState | getState () |
virtual void | setState (const ResourceState &state) |
virtual size_t | getSize ()=0 |
virtual void | load ()=0 |
virtual void | free ()=0 |
Protected Attributes | |
std::string | m_name |
IResourceLoader * | m_loader |
ResourceState | m_state |
Private Attributes | |
ResourceHandle | m_handle |
Static Private Attributes | |
static ResourceHandle | m_curhandle = 1 |
Definition at line 50 of file resource.h.
Enumerator | |
---|---|
RES_INVALID | |
RES_NOT_LOADED | |
RES_LOADED |
Definition at line 52 of file resource.h.
|
inline |
Definition at line 58 of file resource.h.
|
inlinevirtual |
Definition at line 64 of file resource.h.
|
pure virtual |
Implemented in FIFE::Image, FIFE::SoundClip, FIFE::GLImage, FIFE::Animation, and FIFE::SDLImage.
|
inline |
Definition at line 68 of file resource.h.
Referenced by FIFE::SoundClipManager::add(), FIFE::AnimationManager::add(), FIFE::ImageManager::add(), FIFE::GuiImage::free(), FIFE::LibRocketRenderInterface::GenerateTexture(), FIFE::ObjectLoader::load(), FIFE::AnimationManager::remove(), FIFE::SoundClipManager::remove(), FIFE::ImageManager::remove(), and FIFE::SoundEmitter::setSoundClip().
|
inlinevirtual |
Definition at line 66 of file resource.h.
Referenced by FIFE::SoundClipManager::add(), FIFE::AnimationManager::add(), FIFE::ImageManager::add(), FIFE::InstanceRenderer::addToCheck(), FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindOutline(), FIFE::TargetRenderer::createRenderTarget(), FIFE::InstanceRenderer::getMultiColorOverlay(), FIFE::ImageLoader::load(), FIFE::OggLoader::load(), FIFE::SoundClipManager::remove(), FIFE::AnimationManager::remove(), FIFE::ImageManager::remove(), FIFE::InstanceRenderer::removeFromCheck(), FIFE::SDLImage::useSharedImage(), and FIFE::GLImage::useSharedImage().
|
pure virtual |
Implemented in FIFE::Image, FIFE::SoundClip, FIFE::Animation, and FIFE::SDLImage.
|
inlinevirtual |
Definition at line 70 of file resource.h.
Referenced by FIFE::Animation::getFrame(), FIFE::Animation::getFrameByTimestamp(), FIFE::InstanceRenderer::isValidImage(), FIFE::AnimationManager::load(), FIFE::SoundClipManager::load(), FIFE::ImageManager::load(), FIFE::Cursor::setNativeImageCursor(), FIFE::SDLImage::useSharedImage(), FIFE::GLImage::useSharedImage(), FIFE::SDLImage::validateShared(), and FIFE::GLImage::validateShared().
|
pure virtual |
Implemented in FIFE::Image, FIFE::SoundClip, FIFE::GLImage, FIFE::Animation, and FIFE::SDLImage.
|
inlinevirtual |
Definition at line 71 of file resource.h.
References FIFE::IResourceLoader::load().
Referenced by FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindMultiOutline(), FIFE::InstanceRenderer::bindOutline(), FIFE::LibRocketRenderInterface::GenerateTexture(), FIFE::InstanceRenderer::getMultiColorOverlay(), FIFE::ImageManager::loadBlank(), FIFE::SDLImage::useSharedImage(), and FIFE::GLImage::useSharedImage().
|
staticprivate |
Definition at line 85 of file resource.h.
|
private |
Definition at line 84 of file resource.h.
|
protected |
Definition at line 80 of file resource.h.
Referenced by FIFE::Animation::load(), FIFE::SoundClip::load(), and FIFE::Image::load().
|
protected |
Definition at line 79 of file resource.h.
Referenced by FIFE::SoundClip::load().
|
protected |
Definition at line 81 of file resource.h.
Referenced by FIFE::SDLImage::free(), FIFE::Animation::free(), FIFE::GLImage::free(), FIFE::SoundClip::free(), FIFE::Image::free(), FIFE::GLImage::generateGLTexture(), FIFE::Animation::load(), FIFE::GLImage::load(), FIFE::SoundClip::load(), and FIFE::Image::load().