Code: Select all
/** 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.
@param resource The resource which wishes to load
*/
virtual void prepareResource(Resource* resource)
{ (void)resource; }
/** Called when a resource wishes to prepare.
@param resource The resource which wishes to prepare
*/
virtual void loadResource(Resource* resource) = 0;