This abstract class defines an interface which is called back during resource group loading to indicate the progress of the load.
More...
#include <OgreResourceGroupManager.h>
This abstract class defines an interface which is called back during resource group loading to indicate the progress of the load.
- Note
- If OGRE_THREAD_SUPPORT is 1, this class is thread-safe.
◆ ~ResourceGroupListener()
virtual Ogre::ResourceGroupListener::~ResourceGroupListener |
( |
| ) |
|
|
virtual |
◆ resourceCreated()
virtual void Ogre::ResourceGroupListener::resourceCreated |
( |
const ResourcePtr & |
resource | ) |
|
|
inlinevirtual |
This event is fired when a resource was just created.
- Parameters
-
resource | Weak reference to the resource created. |
◆ resourceGroupLoadEnded()
virtual void Ogre::ResourceGroupListener::resourceGroupLoadEnded |
( |
const String & |
groupName | ) |
|
|
pure virtual |
This event is fired when a resource group finished loading.
◆ resourceGroupLoadStarted()
virtual void Ogre::ResourceGroupListener::resourceGroupLoadStarted |
( |
const String & |
groupName, |
|
|
size_t |
resourceCount |
|
) |
| |
|
pure virtual |
This event is fired when a resource group begins loading.
- Parameters
-
groupName | The name of the group being loaded |
resourceCount | The number of resources which will be loaded, including a number of stages required to load any linked world geometry |
◆ resourceGroupPrepareEnded()
virtual void Ogre::ResourceGroupListener::resourceGroupPrepareEnded |
( |
const String & |
groupName | ) |
|
|
inlinevirtual |
This event is fired when a resource group finished preparing.
◆ resourceGroupPrepareStarted()
virtual void Ogre::ResourceGroupListener::resourceGroupPrepareStarted |
( |
const String & |
groupName, |
|
|
size_t |
resourceCount |
|
) |
| |
|
inlinevirtual |
This event is fired when a resource group begins preparing.
- Parameters
-
groupName | The name of the group being prepared |
resourceCount | The number of resources which will be prepared, including a number of stages required to prepare any linked world geometry |
◆ resourceGroupScriptingEnded()
virtual void Ogre::ResourceGroupListener::resourceGroupScriptingEnded |
( |
const String & |
groupName | ) |
|
|
pure virtual |
This event is fired when a resource group finished parsing scripts.
◆ resourceGroupScriptingStarted()
virtual void Ogre::ResourceGroupListener::resourceGroupScriptingStarted |
( |
const String & |
groupName, |
|
|
size_t |
scriptCount |
|
) |
| |
|
pure virtual |
This event is fired when a resource group begins parsing scripts.
- Note
- Remember that if you are loading resources through ResourceBackgroundQueue, these callbacks will occur in the background thread, so you should not perform any thread-unsafe actions in this callback if that's the case (check the group name / script name).
- Parameters
-
groupName | The name of the group |
scriptCount | The number of scripts which will be parsed |
◆ resourceLoadEnded()
virtual void Ogre::ResourceGroupListener::resourceLoadEnded |
( |
| ) |
|
|
pure virtual |
This event is fired when the resource has been loaded.
◆ resourceLoadStarted()
virtual void Ogre::ResourceGroupListener::resourceLoadStarted |
( |
const ResourcePtr & |
resource | ) |
|
|
pure virtual |
This event is fired when a declared resource is about to be loaded.
- Parameters
-
resource | Weak reference to the resource loaded. |
◆ resourcePrepareEnded()
virtual void Ogre::ResourceGroupListener::resourcePrepareEnded |
( |
| ) |
|
|
inlinevirtual |
This event is fired when the resource has been prepared.
◆ resourcePrepareStarted()
virtual void Ogre::ResourceGroupListener::resourcePrepareStarted |
( |
const ResourcePtr & |
resource | ) |
|
|
inlinevirtual |
This event is fired when a declared resource is about to be prepared.
- Parameters
-
resource | Weak reference to the resource prepared. |
◆ resourceRemove()
virtual void Ogre::ResourceGroupListener::resourceRemove |
( |
const ResourcePtr & |
resource | ) |
|
|
inlinevirtual |
This event is fired when a resource is about to be removed.
- Parameters
-
resource | Weak reference to the resource removed. |
◆ scriptParseEnded()
virtual void Ogre::ResourceGroupListener::scriptParseEnded |
( |
const String & |
scriptName, |
|
|
bool |
skipped |
|
) |
| |
|
pure virtual |
This event is fired when the script has been fully parsed.
◆ scriptParseStarted()
virtual void Ogre::ResourceGroupListener::scriptParseStarted |
( |
const String & |
scriptName, |
|
|
bool & |
skipThisScript |
|
) |
| |
|
pure virtual |
This event is fired when a script is about to be parsed.
- Parameters
-
scriptName | Name of the to be parsed |
skipThisScript | A boolean passed by reference which is by default set to false. If the event sets this to true, the script will be skipped and not parsed. Note that in this case the scriptParseEnded event will not be raised for this script. |
The documentation for this class was generated from the following file: