57 bool processed =
false;
63 if (evt->mType == Ogre::CreateMaterialScriptCompilerEvent::eventType)
66 Ogre::CreateMaterialScriptCompilerEvent* convertedEvent =
static_cast<Ogre::CreateMaterialScriptCompilerEvent*
>(evt);
72 SMaterial* newMaterial = mScene->
GetMaterial(convertedEvent->mResourceGroup, convertedEvent->mName,
false);
76 mMaterialList.push_back(newMaterial);
80 newMaterial = mScene->
CreateMaterial(convertedEvent->mResourceGroup, convertedEvent->mName,
true);
89 Ogre::Material** retMaterial = (Ogre::Material**)retval;
90 *retMaterial = ogreMaterial.get();
92 mMaterialList.push_back(newMaterial);