shiny  0.4
a shader and material management library for OGRE
Public Member Functions | List of all members
sh::MaterialListener Class Referenceabstract

Allows you to be notified when a certain material was just created. Useful for changing material properties that you can't do in a .mat script (for example a series of animated textures)
When receiving the event, you can get the platform material by calling m->getMaterial() and casting that to the platform specific material (e.g. for Ogre, sh::OgreMaterial) More...

#include <Factory.hpp>

Public Member Functions

virtual void materialCreated (MaterialInstance *m, const std::string &configuration, unsigned short lodIndex)=0
 

Detailed Description

Allows you to be notified when a certain material was just created. Useful for changing material properties that you can't do in a .mat script (for example a series of animated textures)
When receiving the event, you can get the platform material by calling m->getMaterial() and casting that to the platform specific material (e.g. for Ogre, sh::OgreMaterial)


The documentation for this class was generated from the following file: