gz/rendering/ogre2/Ogre2RenderTarget.hh
Go to the documentation of this file.
Definition: gz/rendering/base/BaseRenderTarget.hh:38
Definition: gz/rendering/base/BaseRenderTarget.hh:101
Definition: gz/rendering/base/BaseRenderTarget.hh:114
Encapsulates a raw image buffer and relevant properties.
Definition: gz/rendering/Image.hh:37
Ogre2.x implementation of the render target class.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:57
virtual void SetVisibilityMask(uint32_t _mask)
Set visibility mask for the viewport associated with this render target.
virtual unsigned int AntiAliasing() const
Get the anti-aliasing level.
virtual void Copy(Image &_image) const override
Copy the render target buffer data to an image.
virtual void SetCamera(Ogre::Camera *_camera)
Set the ogre camera to use for this render target.
MaterialPtr backgroundMaterial
Background material of the render target.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:209
void RebuildMaterial()
Re-initializes render target material to apply a material to everything in the scene....
virtual void UpdateRenderPassChain()
Update the render pass chain.
virtual void SetBackgroundColor(math::Color _color)
Set the background color of the render target.
uint8_t TargetFSAA() const
Returns the FSAA to use based on supported specs by HW and value specified in Ogre2RenderTarget::Anti...
Ogre::ColourValue ogreBackgroundColor
Stores the background color of the render target.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:206
virtual Ogre::TextureGpu * RenderTarget() const =0
Get a pointer to the ogre render target containing the results of the render.
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
virtual void PostRender() override
Post process this object and any of its children after rendering.
virtual void SetBackgroundMaterial(MaterialPtr _material)
Set the background material of this camera.
virtual void RebuildCompositor()
Rebuild the compositor.
virtual bool IsRenderWindow() const
Returns true if this is a render window.
static void UpdateRenderPassChain(Ogre::CompositorWorkspace *_workspace, const std::string &_workspaceDefName, const std::string &_baseNode, const std::string &_finalNode, const std::vector< RenderPassPtr > &_renderPasses, bool _recreateNodes, Ogre::TextureGpu *(*_ogreTextures)[2], bool _isRenderWindow)
Update the render pass chain.
virtual void DestroyCompositor()
Destroy the compositor.
void BuildTargetImpl()
Build the render texture.
void SetMaterial(MaterialPtr _material)
Set a material to render on every object. This method is used for special cases like the render targe...
virtual void RebuildTarget()=0
Rebuild the render target.
Ogre::TextureGpu * RenderTargetImpl() const
Get a pointer to the ogre render target containing the results of the render (implemented separately ...
virtual void BuildCompositor()
Build the compositor.
virtual MaterialPtr BackgroundMaterial() const
Get the background material of this camera.
virtual uint32_t VisibilityMask() const
Get visibility mask for the viewport associated with this render target.
virtual void SetAntiAliasing(unsigned int _aa)
set the anti-aliasing level
void DestroyTargetImpl()
Destroy the render texture.
virtual void Destroy() override=0
Destroy the render target.
void SetShadowsNodeDefDirty()
std::string ogreCompositorWorkspaceDefName
Ogre's compositor workspace definition name.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:203
virtual void UpdateBackgroundColor()
Update the background color.
Ogre2RenderTargetMaterialPtr materialApplicator
Helper class that applies the material to the render target.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:215
unsigned int GLIdImpl() const
virtual void UpdateBackgroundMaterial()
Update the background material.
virtual math::Color BackgroundColor() const override
Get the background color of the render target. This should be the same as the scene background color.
virtual void RebuildImpl() override
Implementation of the Rebuild function.
virtual Ogre::Camera * Camera() const
Get a pointer to the internal ogre camera.
MaterialPtr material
a material used by for the render target
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:212
Ogre2.x implementation of the render texture class.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:237
virtual void BuildTarget()
Build the render texture.
virtual void RebuildTarget() override
Rebuild the render target.
virtual void DestroyTarget()
Destroy the render texture.
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
virtual void PostRender() override
Post process this object and any of its children after rendering.
virtual ~Ogre2RenderTexture()
Destructor.
virtual void Destroy() override
Destroy the render target.
virtual unsigned int GLId() const override
Returns the OpenGL texture Id. A valid Id is returned only.
virtual Ogre::TextureGpu * RenderTarget() const override
Get a pointer to the ogre render target containing the results of the render.
Ogre2.x implementation of the render window class.
Definition: gz/rendering/ogre2/Ogre2RenderTarget.hh:277
virtual void BuildTarget()
Build the render window.
virtual void RebuildTarget() override
Rebuild the render target.
virtual bool IsRenderWindow() const override
Returns true if this is a render window.
virtual void Destroy() override
Destroy the render target.
virtual Ogre::TextureGpu * RenderTarget() const override
Get a pointer to the ogre render target containing the results of the render.
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:59
#define IGN_VISIBILITY_ALL
Render everything visibility mask.
Definition: gz/rendering/RenderTypes.hh:26
Definition: gz/rendering/ogre/OgreCamera.hh:28