Go to the documentation of this file.
18 #ifndef GZ_RENDERING_OGRE2_OGRE2MATERIALSWITCHER_HH_
19 #define GZ_RENDERING_OGRE2_OGRE2MATERIALSWITCHER_HH_
24 #include <gz/math/Color.hh>
25 #include "gz/rendering/config.hh"
26 #include "gz/rendering/ogre2/Export.hh"
34 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
37 class Ogre2SelectionBuffer;
41 public Ogre::RenderTargetListener
52 const gz::math::Color &_color)
const;
60 public:
virtual void preRenderTargetUpdate(
61 const Ogre::RenderTargetEvent &_evt);
66 public:
virtual void postRenderTargetUpdate(
67 const Ogre::RenderTargetEvent &_evt);
70 private: gz::math::Color currentColor;
81 private: Ogre::MaterialPtr plainMaterial;
86 private: Ogre::MaterialPtr plainOverlayMaterial;
90 private:
void NextColor();
Helper class to assign unique colors to renderables.
Definition: gz/rendering/ogre2/Ogre2MaterialSwitcher.hh:40
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre2/Ogre2SelectionBuffer.hh:47