OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Manages threaded compilation of scripts. More...
#include <OgreScriptCompiler.h>
Public Member Functions | |
ScriptCompilerManager () | |
virtual | ~ScriptCompilerManager () |
void | addScriptPattern (const String &pattern) |
Adds a script extension that can be handled (e.g. *.material, *.pu, etc.) More... | |
void | addTranslatorManager (ScriptTranslatorManager *man) |
Adds the given translator manager to the list of managers. More... | |
void | clearTranslatorManagers () |
Clears all translator managers. More... | |
ScriptCompilerListener * | getListener () |
Returns the currently set listener used for compiler instances. More... | |
Real | getLoadingOrder (void) const override |
Gets the loading order for scripts of this type. More... | |
const StringVector & | getScriptPatterns (void) const override |
Gets the file patterns which should be used to find scripts for this class. More... | |
ScriptTranslator * | getTranslator (const AbstractNodePtr &node) |
Retrieves a ScriptTranslator from the supported managers. More... | |
void | parseScript (DataStreamPtr &stream, const String &groupName) override |
Parse a script file. More... | |
uint32 | registerCustomWordId (const String &word) |
Adds a custom word id which can be used for custom script translators. More... | |
void | removeTranslatorManager (ScriptTranslatorManager *man) |
Removes the given translator manager from the list of managers. More... | |
void | setListener (ScriptCompilerListener *listener) |
Sets the listener used for compiler instances. More... | |
Public Member Functions inherited from Ogre::Singleton< ScriptCompilerManager > | |
Singleton (void) | |
~Singleton (void) | |
Public Member Functions inherited from Ogre::ScriptLoader | |
virtual | ~ScriptLoader () |
Static Public Member Functions | |
static ScriptCompilerManager & | getSingleton (void) |
Get the singleton instance. More... | |
static ScriptCompilerManager * | getSingletonPtr (void) |
Get the singleton instance. More... | |
Static Public Member Functions inherited from Ogre::Singleton< ScriptCompilerManager > | |
static ScriptCompilerManager & | getSingleton (void) |
Get the singleton instance. More... | |
static ScriptCompilerManager * | getSingletonPtr (void) |
Get the singleton instance. More... | |
Manages threaded compilation of scripts.
This script loader forwards scripts compilations to a specific compiler instance.
Ogre::ScriptCompilerManager::ScriptCompilerManager | ( | ) |
|
virtual |
void Ogre::ScriptCompilerManager::setListener | ( | ScriptCompilerListener * | listener | ) |
Sets the listener used for compiler instances.
ScriptCompilerListener* Ogre::ScriptCompilerManager::getListener | ( | ) |
Returns the currently set listener used for compiler instances.
void Ogre::ScriptCompilerManager::addTranslatorManager | ( | ScriptTranslatorManager * | man | ) |
Adds the given translator manager to the list of managers.
void Ogre::ScriptCompilerManager::removeTranslatorManager | ( | ScriptTranslatorManager * | man | ) |
Removes the given translator manager from the list of managers.
void Ogre::ScriptCompilerManager::clearTranslatorManagers | ( | ) |
Clears all translator managers.
ScriptTranslator* Ogre::ScriptCompilerManager::getTranslator | ( | const AbstractNodePtr & | node | ) |
Retrieves a ScriptTranslator from the supported managers.
Adds a custom word id which can be used for custom script translators.
word | The word to be registered. |
void Ogre::ScriptCompilerManager::addScriptPattern | ( | const String & | pattern | ) |
Adds a script extension that can be handled (e.g. *.material, *.pu, etc.)
|
overridevirtual |
Gets the file patterns which should be used to find scripts for this class.
This method is called when a resource group is loaded if you use ResourceGroupManager::_registerScriptLoader.
Implements Ogre::ScriptLoader.
|
overridevirtual |
Parse a script file.
stream | Weak reference to a data stream which is the source of the script |
groupName | The name of a resource group which should be used if any resources are created during the parse of this script. |
Implements Ogre::ScriptLoader.
|
overridevirtual |
Gets the loading order for scripts of this type.
There are dependencies between some kinds of scripts, and this value enumerates that. Higher values load later during bulk loading tasks.
Implements Ogre::ScriptLoader.
|
static |
Get the singleton instance.
|
static |
Get the singleton instance.