Go to the documentation of this file.
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 IGNITION_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;
92 public:
virtual Ogre::Technique *handleSchemeNotFound(
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;
Causes all objects in a scene to be rendered with the same material when rendered by a given RenderTa...
Definition: gz/rendering/ogre2/Ogre2RenderTargetMaterial.hh:58