Ogre2MaterialSwitcher Class Reference
Helper class to assign unique colors to renderables. More...
#include <Ogre2MaterialSwitcher.hh>
Public Member Functions | |
| Ogre2MaterialSwitcher (Ogre2ScenePtr _scene) | |
| Constructor. | |
| ~Ogre2MaterialSwitcher () | |
| Destructor. | |
| virtual void | cameraPostRenderScene (Ogre::Camera *_cam) override |
| Ogre's post render update callback. | |
| virtual void | cameraPreRenderScene (Ogre::Camera *_cam) override |
| Ogre's pre render update callback. | |
| std::string | EntityName (const gz::math::Color &_color) const |
| Get the entity with a specific color. | |
| void | Reset () |
| Reset the color value incrementor. | |
Detailed Description
Helper class to assign unique colors to renderables.
Constructor & Destructor Documentation
◆ Ogre2MaterialSwitcher()
|
explicit |
Constructor.
◆ ~Ogre2MaterialSwitcher()
Destructor.
Member Function Documentation
◆ cameraPostRenderScene()
|
overridevirtual |
◆ cameraPreRenderScene()
|
overridevirtual |
◆ EntityName()
| std::string EntityName | ( | const gz::math::Color & | _color | ) | const |
Get the entity with a specific color.
- Parameters
-
[in] _color The entity's color.
◆ Reset()
| void Reset | ( | ) |
Reset the color value incrementor.
The documentation for this class was generated from the following file: