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)
40 #pragma warning(disable:4251)
47 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
62 public Ogre::Camera::Listener,
63 public Ogre::MaterialManager::Listener
70 Ogre::Camera *_renderTarget, Ogre::Material *_material);
77 private:
virtual void cameraPreRenderScene(
78 Ogre::Camera *_cam)
override;
82 private:
virtual void cameraPostRenderScene(
83 Ogre::Camera *_evt)
override;
96 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
97 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
98 const Ogre::Renderable *_rend)
override;
101 private: Ogre::SceneManager *scene =
nullptr;
104 private: Ogre::Camera *renderCamera =
nullptr;
107 private: Ogre::Material *material =
nullptr;
110 private: Ogre::String schemeName;