Interface describing a manual resource loader. More...
#include <OgreResource.h>
Public Member Functions | |
ManualResourceLoader () | |
virtual | ~ManualResourceLoader () |
virtual void | prepareResource (Resource *resource) |
Called when a resource wishes to load. | |
virtual void | loadResource (Resource *resource)=0 |
Called when a resource wishes to prepare. |
Interface describing a manual resource loader.
Definition at line 512 of file OgreResource.h.
Ogre::ManualResourceLoader::ManualResourceLoader | ( | ) |
Definition at line 515 of file OgreResource.h.
virtual Ogre::ManualResourceLoader::~ManualResourceLoader | ( | ) | [virtual] |
Definition at line 516 of file OgreResource.h.
virtual void Ogre::ManualResourceLoader::loadResource | ( | Resource * | resource | ) | [pure virtual] |
Called when a resource wishes to prepare.
resource | The resource which wishes to prepare |
Implemented in Ogre::Font, and Ogre::MeshManager.
virtual void Ogre::ManualResourceLoader::prepareResource | ( | Resource * | resource | ) | [virtual] |
Called when a resource wishes to load.
Note that this could get called in a background thread even in just a semithreaded ogre (OGRE_THREAD_SUPPORT==2). Thus, you must not access the rendersystem from this callback. Do that stuff in loadResource.
resource | The resource which wishes to load |
Definition at line 524 of file OgreResource.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:39:26 2012