OGRE-Next
2.3
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 () const override |
Gets the relative loading order of scripts of this type. More... | |
const StringVector & | getScriptPatterns () 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 | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info 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... | |
Static Public Member Functions | |
static ScriptCompilerManager & | getSingleton () |
Override standard Singleton retrieval. More... | |
static ScriptCompilerManager * | getSingletonPtr () |
Override standard Singleton retrieval. More... | |
Manages threaded compilation of scripts.
This script loader forwards scripts compilations to a specific compiler instance.
Ogre::ScriptCompilerManager::ScriptCompilerManager | ( | ) |
|
virtual |
void Ogre::ScriptCompilerManager::addScriptPattern | ( | const String & | pattern | ) |
Adds a script extension that can be handled (e.g. *.material, *.pu, etc.)
void Ogre::ScriptCompilerManager::addTranslatorManager | ( | ScriptTranslatorManager * | man | ) |
Adds the given translator manager to the list of managers.
void Ogre::ScriptCompilerManager::clearTranslatorManagers | ( | ) |
Clears all translator managers.
ScriptCompilerListener* Ogre::ScriptCompilerManager::getListener | ( | ) |
Returns the currently set listener used for compiler instances.
|
overridevirtual |
Gets the relative loading order of scripts of this type.
Implements Ogre::ScriptLoader.
|
overridevirtual |
Gets the file patterns which should be used to find scripts for this class.
Implements Ogre::ScriptLoader.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
ScriptTranslator* Ogre::ScriptCompilerManager::getTranslator | ( | const AbstractNodePtr & | node | ) |
Retrieves a ScriptTranslator from the supported managers.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
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.
Adds a custom word id which can be used for custom script translators.
word | The word to be registered. |
void Ogre::ScriptCompilerManager::removeTranslatorManager | ( | ScriptTranslatorManager * | man | ) |
Removes the given translator manager from the list of managers.
void Ogre::ScriptCompilerManager::setListener | ( | ScriptCompilerListener * | listener | ) |
Sets the listener used for compiler instances.