OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Listener on any general material events. More...
#include <OgreMaterialManager.h>
Public Member Functions | |
virtual | ~Listener () |
Virtual destructor needed as class has virtual methods. More... | |
virtual bool | afterIlluminationPassesCreated (Technique *technique) |
Called right after illuminated passes were created, so that owner of runtime generated technique can handle this. More... | |
virtual bool | beforeIlluminationPassesCleared (Technique *technique) |
Called right before illuminated passes would be removed, so that owner of runtime generated technique can handle this. More... | |
virtual Technique * | handleSchemeNotFound (unsigned short schemeIndex, const String &schemeName, Material *originalMaterial, unsigned short lodIndex, const Renderable *rend)=0 |
Called if a technique for a given scheme is not found within a material, allows the application to specify a Technique instance manually. More... | |
Listener on any general material events.
|
inlinevirtual |
Virtual destructor needed as class has virtual methods.
|
pure virtual |
Called if a technique for a given scheme is not found within a material, allows the application to specify a Technique instance manually.
schemeIndex | The index of the scheme that was requested - all schemes have a unique index when created that does not alter. |
schemeName | The friendly name of the scheme being requested |
originalMaterial | The material that is being processed, that didn't have a specific technique for this scheme |
lodIndex | The material level-of-detail that was being asked for, in case you need to use it to determine a technique. |
rend | Pointer to the Renderable that is requesting this technique to be used, so this may influence your choice of Technique. May be null if the technique isn't being requested in that context. |
Implemented in OgreBites::SGTechniqueResolverListener.
|
inlinevirtual |
Called right after illuminated passes were created, so that owner of runtime generated technique can handle this.
Reimplemented in OgreBites::SGTechniqueResolverListener.
|
inlinevirtual |
Called right before illuminated passes would be removed, so that owner of runtime generated technique can handle this.
Reimplemented in OgreBites::SGTechniqueResolverListener.