18 #ifndef IGNITION_RENDERING_OGRE2_OGRE2MATERIALSWITCHER_HH_ 19 #define IGNITION_RENDERING_OGRE2_OGRE2MATERIALSWITCHER_HH_ 25 #include "ignition/rendering/config.hh" 26 #include "ignition/rendering/ogre2/Export.hh" 30 #pragma warning(push, 0) 32 #include <OgreMaterial.h> 33 #include <OgreRenderTargetListener.h> 42 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
45 class Ogre2SelectionBuffer;
49 public Ogre::RenderTargetListener
68 public:
virtual void preRenderTargetUpdate(
69 const Ogre::RenderTargetEvent &_evt);
74 public:
virtual void postRenderTargetUpdate(
75 const Ogre::RenderTargetEvent &_evt);
89 private: Ogre::MaterialPtr plainMaterial;
94 private: Ogre::MaterialPtr plainOverlayMaterial;
98 private:
void NextColor();
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: Ogre2SelectionBuffer.hh:47
Helper class to assign unique colors to renderables.
Definition: Ogre2MaterialSwitcher.hh:48