SO3Engine
|
SO3Material.cpp
Go to the documentation of this file.
19SMaterial::SMaterial(SScene* scene, const std::string& groupname, const std::string& materialName, const bool& loadedFromScript) : SData(materialName)
34 // If no material is found, it's either that scol user asked for the creation of a new material, or that the SResourceLoader (that "listens" to ogre script loading)
41 // If not loaded from Ogre's script, then create a minimal material with one texture unit, and bind STechnique to Ogre::Technique. We do not do that for content loaded
66 //Ogre::RTShader::ShaderGenerator::getSingletonPtr()->removeAllShaderBasedTechniques(GetName(), GetGroupName());
71 Ogre::SceneManager::MovableObjectMap EntityList = mScene->GetOgreScenePointer()->getMovableObjects("Entity");
74 for (Ogre::SceneManager::MovableObjectMap::iterator iEntity = EntityList.begin(); iEntity != EntityList.end(); iEntity++)
85 if ((ogreMaterial->getGroup() != Ogre::RGN_INTERNAL) && (ogreMaterial->getGroup() == mGroupName))
133 Ogre::SceneManager::MovableObjectMap EntityList = mScene->GetOgreScenePointer()->getMovableObjects("Entity");
464 Ogre::ResourceManager::ResourceMapIterator it = Ogre::MaterialManager::getSingleton().getResourceIterator();
536 Ogre::RTShader::ShaderGenerator::getSingletonPtr()->removeAllShaderBasedTechniques(*ogreMaterial.get());
621 stech->GetParentMaterial()->GetScene()->GetShadowManager()->UpdateShadowMaterial(stech->GetOgreTechniquePointer());
664 Ogre::ResourceManager::ResourceMapIterator it = Ogre::MaterialManager::getSingleton().getResourceIterator();
754 stech->GetParentMaterial()->GetScene()->GetShadowManager()->UpdateShadowMaterial(stech->GetOgreTechniquePointer());
static Ogre::ColourValue ScolToOgreColorRGBA(const int &scolColor)
Definition SO3ConversionTools.cpp:126
Definition SO3DataScol.h:41
void SetAssociatedWidget(SWidget *newAssociatedWidget)
Definition SO3Material.cpp:227
void CleanUpGeneratedTechniques()
Definition SO3Material.cpp:400
Ogre::MaterialPtr getOgreMaterialPointer()
Definition SO3Material.cpp:157
void SetLightingEnabled(const bool &state)
Definition SO3Material.cpp:248
void UpdateGeneratedMaterial(bool full=false)
Definition SO3Material.cpp:809
STechnique * GetTechnique(const unsigned int &technique)
Definition SO3Material.cpp:178
void SetSpecularColor(const int &color)
Definition SO3Material.cpp:272
void SetSelfIlluminationColor(const int &color)
Definition SO3Material.cpp:280
void WriteMaterialFile(std::string path="")
Definition SO3Material.cpp:420
void SetIgnoreSlicePlane(bool state)
Definition SO3Material.cpp:773
static void UpdateMaterialScript(std::string path)
Definition SO3Material.cpp:625
void SetReceiveShadows(const bool &state)
Definition SO3Material.cpp:242
void RemoveTechnique(const unsigned int &technique)
Definition SO3Material.cpp:336
int GetTechniqueIndexByName(const std::string &techname)
Definition SO3Material.cpp:196
static int CountMaterialsInScript(std::string path)
Definition SO3Material.cpp:758
void _UpdateOgreMaterialPointer()
Definition SO3Material.cpp:124
Definition SO3Pass.h:43
void RemoveGeneratedMaterial(Ogre::Material *mat)
Definition SO3Root.cpp:2343
Definition SO3Scene.h:125
Ogre::SceneManager * GetOgreScenePointer()
Definition SO3Scene.cpp:449
void UpdateShadowMaterial(Ogre::Technique *tech)
Definition SO3ShadowManager.cpp:237
void CleanShadowMaterial(Ogre::Technique *tech)
Definition SO3ShadowManager.cpp:243
Definition SO3Technique.h:42
Ogre::Technique * GetOgreTechniquePointer()
Definition SO3Technique.cpp:80
Definition SO3Widget.h:51
Definition SO3DataScol.h:38
Generated by 1.9.8