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"
30 #pragma warning(push, 0)
32 #include <OgreCamera.h>
33 #include <OgreMaterial.h>
42 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
45 class Ogre2SelectionBuffer;
49 public Ogre::Camera::Listener
68 public:
virtual void cameraPreRenderScene(
69 Ogre::Camera *_cam)
override;
74 public:
virtual void cameraPostRenderScene(Ogre::Camera *_cam)
override;
77 private: gz::math::Color currentColor;
88 private: Ogre::MaterialPtr plainMaterial;
93 private: Ogre::MaterialPtr plainOverlayMaterial;
97 private:
void NextColor();
Helper class to assign unique colors to renderables.
Definition: gz/rendering/ogre2/Ogre2MaterialSwitcher.hh:48
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre2/Ogre2SelectionBuffer.hh:47