Go to the documentation of this file.
18 #ifndef GZ_RENDERING_OGRE_OGREMATERIALSWITCHER_HH_
19 #define GZ_RENDERING_OGRE_OGREMATERIALSWITCHER_HH_
24 #include <gz/common/SuppressWarning.hh>
25 #include <gz/math/Color.hh>
26 #include "gz/rendering/config.hh"
27 #include "gz/rendering/ogre/Export.hh"
35 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
38 class OgreSelectionBuffer;
46 #pragma warning(disable:4275)
48 public Ogre::MaterialManager::Listener,
52 Ogre::RenderTargetListener
63 const gz::math::Color &_color)
const;
78 public:
virtual Ogre::Technique *handleSchemeNotFound(
79 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
80 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
81 const Ogre::Renderable *_rend);
86 public:
virtual void preRenderTargetUpdate(
87 const Ogre::RenderTargetEvent &_evt);
92 public:
virtual void postRenderTargetUpdate(
93 const Ogre::RenderTargetEvent &_evt);
96 private: gz::math::Color currentColor;
102 private: Ogre::Technique *lastTechnique =
nullptr;
112 private:
void NextColor();
119 private: Ogre::Technique *plainTechnique =
nullptr;
122 private: Ogre::Technique *overlayTechnique =
nullptr;
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Helper class to assign unique colors to renderables.
Definition: gz/rendering/ogre/OgreMaterialSwitcher.hh:41
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre/OgreSelectionBuffer.hh:47
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING