OgreMaterialSwitcher Class Reference
Helper class to assign unique colors to renderables. More...
#include <OgreMaterialSwitcher.hh>
Public Member Functions | |
| OgreMaterialSwitcher () | |
| Constructor. | |
| ~OgreMaterialSwitcher () | |
| Destructor. | |
| std::string | EntityName (const gz::math::Color &_color) const |
| Get the entity with a specific color. | |
| virtual Ogre::Technique * | handleSchemeNotFound (uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *_rend) |
| Ogre callback that assigns colors to new renderables when the requested scheme is not found. | |
| virtual void | postRenderTargetUpdate (const Ogre::RenderTargetEvent &_evt) |
| Ogre's post render update callback. | |
| virtual void | preRenderTargetUpdate (const Ogre::RenderTargetEvent &_evt) |
| Ogre's pre render update callback. | |
| void | Reset () |
| Reset the color value incrementor. | |
Detailed Description
Helper class to assign unique colors to renderables.
Constructor & Destructor Documentation
◆ OgreMaterialSwitcher()
Constructor.
◆ ~OgreMaterialSwitcher()
| ~OgreMaterialSwitcher | ( | ) |
Destructor.
Member Function Documentation
◆ EntityName()
| std::string EntityName | ( | const gz::math::Color & | _color | ) | const |
Get the entity with a specific color.
- Parameters
-
[in] _color The entity's color.
◆ handleSchemeNotFound()
|
virtual |
Ogre callback that assigns colors to new renderables when the requested scheme is not found.
- Parameters
-
[in] _schemeIndex Index of scheme requested [in] _schemeName Name of scheme requested [in] _originalMaterial Orignal material that does not contain the requested scheme [in] _lodIndex The material level-of-detail [in] _rend Pointer to the Ogre::Renderable object requesting the use of the techinique
- Returns
- The Ogre material technique to use when scheme is not found.
◆ postRenderTargetUpdate()
|
virtual |
◆ preRenderTargetUpdate()
|
virtual |
◆ Reset()
| void Reset | ( | ) |
Reset the color value incrementor.
The documentation for this class was generated from the following file: