17 #ifndef GZ_RENDERING_OGRE2_OGRE2RENDERTARGETMATERIAL_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2RENDERTARGETMATERIAL_HH_
22 #include "gz/rendering/config.hh"
23 #include "gz/rendering/ogre2/Export.hh"
26 #pragma warning(push, 0)
28 #include <OgreCamera.h>
29 #include <OgreMaterialManager.h>
37 #pragma warning(disable:4275)
44 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
59 public Ogre::Camera::Listener,
60 public Ogre::MaterialManager::Listener
67 Ogre::Camera *_renderTarget, Ogre::Material *_material);
74 private:
virtual void cameraPreRenderScene(
75 Ogre::Camera *_cam)
override;
79 private:
virtual void cameraPostRenderScene(
80 Ogre::Camera *_evt)
override;
93 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
94 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
95 const Ogre::Renderable *_rend)
override;
98 private: Ogre::SceneManager *scene =
nullptr;
101 private: Ogre::Camera *renderCamera =
nullptr;
104 private: Ogre::Material *material =
nullptr;
107 private: Ogre::String schemeName;