Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE_OGRERENDERTARGET_HH_
18 #define GZ_RENDERING_OGRE_OGRERENDERTARGET_HH_
20 #include <gz/math/Color.hh>
40 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
49 public:
virtual unsigned int AntiAliasing()
const;
51 public:
virtual void SetAntiAliasing(
unsigned int _aa);
53 public:
virtual void Copy(
Image &_image)
const override;
55 public:
virtual Ogre::Camera *
Camera()
const;
57 public:
virtual void SetCamera(Ogre::Camera *_camera);
60 public:
virtual math::Color BackgroundColor()
const override;
62 public:
virtual void SetBackgroundColor(
math::Color _color);
65 public:
virtual void PreRender()
override;
68 public:
virtual void PostRender()
override;
70 public:
virtual void Render();
72 public:
virtual void Destroy()
override = 0;
79 public:
virtual Ogre::RenderTarget *
RenderTarget()
const = 0;
81 public: Ogre::Viewport *AddViewport(Ogre::Camera *_viewport);
83 public: Ogre::Viewport *Viewport(
const int _viewportId)
const;
85 public:
void SetUpdate(
const bool _value);
87 public:
void SetAutoUpdated(
const bool _value);
89 protected:
virtual void UpdateBackgroundColor();
92 protected:
virtual void UpdateRenderPassChain();
94 protected:
virtual void RebuildImpl()
override;
96 protected:
virtual void RebuildTarget() = 0;
98 protected:
virtual void RebuildViewport();
104 protected:
void RebuildMaterial();
106 protected: Ogre::Camera *ogreCamera =
nullptr;
108 protected: Ogre::Viewport *ogreViewport =
nullptr;
118 protected:
bool colorDirty =
true;
120 protected:
unsigned int antiAliasing = 4;
130 public:
virtual void Destroy()
override;
133 public:
virtual void PreRender()
override;
136 public:
virtual void PostRender()
override;
139 public:
virtual unsigned int GLId();
141 public:
virtual void Buffer(
float *buffer);
143 public:
virtual Ogre::RenderTarget *
RenderTarget()
const override;
145 protected:
virtual void RebuildTarget()
override;
147 protected:
virtual void DestroyTarget();
149 protected:
virtual void BuildTarget();
151 protected: Ogre::Texture *ogreTexture =
nullptr;
163 public:
virtual void Destroy();
165 protected:
virtual Ogre::RenderTarget *
RenderTarget()
const;
167 protected:
virtual void RebuildTarget();
169 protected:
virtual void BuildTarget();
171 protected: Ogre::RenderTarget *ogreRenderWindow =
nullptr;
Definition: gz/rendering/ogre/OgreCamera.hh:27
Definition: gz/rendering/ogre/OgreScene.hh:39
Definition: gz/rendering/ogre/OgreRenderTarget.hh:123
Ogre::ColourValue ogreBackgroundColor
Definition: gz/rendering/ogre/OgreRenderTarget.hh:110
Encapsulates a raw image buffer and relevant properties.
Definition: gz/rendering/Image.hh:36
OgreRenderTargetMaterialPtr materialApplicator
Helper class that applies the material to the render target.
Definition: gz/rendering/ogre/OgreRenderTarget.hh:116
Posable camera used for rendering the scene graph.
Definition: gz/rendering/Camera.hh:40
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
Definition: gz/rendering/ogre/OgreRenderTarget.hh:156
MaterialPtr material
a material used by for the render target
Definition: gz/rendering/ogre/OgreRenderTarget.hh:113
Definition: gz/rendering/base/BaseRenderTarget.hh:35
Definition: gz/rendering/ogre/OgreRenderTarget.hh:42
Definition: gz/rendering/base/BaseRenderTarget.hh:111
Definition: gz/rendering/base/BaseRenderTarget.hh:98