SO3Engine
|
SO3ResourceLoader.cpp
Go to the documentation of this file.
54 bool SResourceLoader::handleEvent(Ogre::ScriptCompiler* compiler, Ogre::ScriptCompilerEvent* evt, void* retval)
66 Ogre::CreateMaterialScriptCompilerEvent* convertedEvent = static_cast<Ogre::CreateMaterialScriptCompilerEvent*>(evt);
72 SMaterial* newMaterial = mScene->GetMaterial(convertedEvent->mResourceGroup, convertedEvent->mName, false);
80 newMaterial = mScene->CreateMaterial(convertedEvent->mResourceGroup, convertedEvent->mName, true);
88 // Get the newly created Ogre::Material (in SMaterial) and return it to the script compiler, it will populate it!
109 Ogre::PreApplyTextureAliasesScriptCompilerEvent* convertedEvent = static_cast<Ogre::PreApplyTextureAliasesScriptCompilerEvent*>(evt);
112 SMaterial* material = mScene->GetMaterial(convertedEvent->mMaterial->getGroup(), convertedEvent->mMaterial->getName());
Definition SO3Material.h:43
Ogre::MaterialPtr getOgreMaterialPointer()
Definition SO3Material.cpp:157
Definition SO3ResourceLoader.h:43
virtual bool handleEvent(Ogre::ScriptCompiler *compiler, Ogre::ScriptCompilerEvent *evt, void *retval)
Definition SO3ResourceLoader.cpp:54
void SyncParsedMaterials()
Definition SO3ResourceLoader.cpp:42
static SResourceLoader & getSingleton()
Definition SO3ResourceLoader.cpp:31
void SetResourceScene(SScene *scene)
Definition SO3ResourceLoader.cpp:37
static SResourceLoader * getSingletonPtr()
Definition SO3ResourceLoader.cpp:26
Definition SO3Scene.h:125
SMaterial * GetMaterial(const std::string &groupName, const std::string &materialName, bool searchOtherGroups=true)
Definition SO3Scene.cpp:1099
SMaterial * CreateMaterial(const std::string &groupname, const std::string &matname, const bool &loadedFromScript=false)
Definition SO3Scene.cpp:1048
Definition SO3DataScol.h:38
Generated by 1.9.8