Right now I'm using Shoggoth script engine for my files, with the custom translator (see http://www.ogre3d.org/wiki/index.php/Ex ... tCompilers).
There's only one issue. At parsing time, Ogre checks for patterns defined like this :
Code: Select all
#if OGRE_USE_NEW_COMPILERS == 1
mScriptPatterns.push_back("*.program");
mScriptPatterns.push_back("*.material");
mScriptPatterns.push_back("*.particle");
mScriptPatterns.push_back("*.compositor");
#endif
mScriptPatterns.push_back("*.os");
What would be great would be to, say, associate a script translator to a kind of file.
We may be able to register it this way :
Code: Select all
Ogre::ScriptCompilerManager::getSingleton().addTranslatorManager(&translatorManager, "*.myfile");
Tx.