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);
92 public:
virtual void SetVisibilityMask(uint32_t _mask);
94 protected:
virtual void UpdateBackgroundColor();
97 protected:
virtual void UpdateRenderPassChain();
99 protected:
virtual void RebuildImpl()
override;
101 protected:
virtual void RebuildTarget() = 0;
103 protected:
virtual void RebuildViewport();
109 protected:
void RebuildMaterial();
111 protected: Ogre::Camera *ogreCamera =
nullptr;
113 protected: Ogre::Viewport *ogreViewport =
nullptr;
123 protected:
bool colorDirty =
true;
125 protected:
unsigned int antiAliasing = 4;
138 public:
virtual void Destroy()
override;
141 public:
virtual void PreRender()
override;
144 public:
virtual void PostRender()
override;
147 public:
virtual unsigned int GLId();
149 public:
virtual void Buffer(
float *buffer);
151 public:
virtual Ogre::RenderTarget *
RenderTarget()
const override;
153 protected:
virtual void RebuildTarget()
override;
155 protected:
virtual void DestroyTarget();
157 protected:
virtual void BuildTarget();
159 protected: Ogre::Texture *ogreTexture =
nullptr;
171 public:
virtual void Destroy();
173 protected:
virtual Ogre::RenderTarget *
RenderTarget()
const;
175 protected:
virtual void RebuildTarget();
177 protected:
virtual void BuildTarget();
179 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:131
Ogre::ColourValue ogreBackgroundColor
Definition: gz/rendering/ogre/OgreRenderTarget.hh:115
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:121
Posable camera used for rendering the scene graph.
Definition: gz/rendering/Camera.hh:49
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
#define IGN_VISIBILITY_ALL
Render everything visibility mask.
Definition: gz/rendering/RenderTypes.hh:26
Definition: gz/rendering/ogre/OgreRenderTarget.hh:164
MaterialPtr material
a material used by for the render target
Definition: gz/rendering/ogre/OgreRenderTarget.hh:118
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