gz/rendering/base/BaseRenderTarget.hh
STL class.
virtual ~BaseRenderWindow()
Definition: gz/rendering/base/BaseRenderTarget.hh:304
virtual void RemoveRenderPass(const RenderPassPtr &_pass) override
Remove a render pass from the render target.
Definition: gz/rendering/base/BaseRenderTarget.hh:241
Represents a off-screen render-texture to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:103
virtual unsigned int RenderPassCount() const override
Get the number of render passes applied to the render target.
Definition: gz/rendering/base/BaseRenderTarget.hh:255
BaseRenderWindow()
Definition: gz/rendering/base/BaseRenderTarget.hh:298
BaseRenderTexture()
Definition: gz/rendering/base/BaseRenderTarget.hh:277
virtual void OnResize(const unsigned int _width, const unsigned int _height)
Alert the window of a window resize event.
Definition: gz/rendering/base/BaseRenderTarget.hh:340
PixelFormat
Image pixel format types.
Definition: gz/rendering/PixelFormat.hh:32
std::vector< RenderPassPtr > renderPasses
A chain of render passes applied to the render target.
Definition: gz/rendering/base/BaseRenderTarget.hh:94
STL class.
T find(T... args)
virtual RenderPassPtr RenderPassByIndex(unsigned int _index) const override
Get a render pass by index.
Definition: gz/rendering/base/BaseRenderTarget.hh:262
virtual math::Color BackgroundColor() const =0
Get the scene background color.
Represents a on-screen render-window to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:119
virtual unsigned int GLId() const override
Returns the OpenGL texture Id. A valid Id is returned only.
Definition: gz/rendering/base/BaseRenderTarget.hh:289
virtual void SetHandle(const std::string &_handle)
Set the window handle to attach the render window to.
Definition: gz/rendering/base/BaseRenderTarget.hh:317
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseRenderTarget.hh:153
virtual PixelFormat Format() const override
Set the render target image format.
Definition: gz/rendering/base/BaseRenderTarget.hh:211
virtual void PostRender() override
Post process this object and any of its children after rendering.
Definition: gz/rendering/base/BaseRenderTarget.hh:163
virtual void SetHeight(const unsigned int _height) override
Set the render target height in pixels.
Definition: gz/rendering/base/BaseRenderTarget.hh:203
virtual void AddRenderPass(const RenderPassPtr &_pass) override
Add a render pass to the render target.
Definition: gz/rendering/base/BaseRenderTarget.hh:233
#define ignerr
virtual math::Color BackgroundColor() const override
Get the background color of the render target. This should be the same as the scene background color.
Definition: gz/rendering/base/BaseRenderTarget.hh:226
virtual unsigned int Height() const override
Get render target height in pixels.
Definition: gz/rendering/base/BaseRenderTarget.hh:196
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:49
unsigned int height
Definition: gz/rendering/base/BaseRenderTarget.hh:91
virtual void Rebuild()
Definition: gz/rendering/base/BaseRenderTarget.hh:170
virtual unsigned int Width() const override
Get render target width in pixels.
Definition: gz/rendering/base/BaseRenderTarget.hh:181
PixelFormat format
Definition: gz/rendering/base/BaseRenderTarget.hh:82
virtual std::string Handle() const
Get the window handle that the render window is attached to.
Definition: gz/rendering/base/BaseRenderTarget.hh:310
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
virtual void SetWidth(const unsigned int _width) override
Set the render target width in pixels.
Definition: gz/rendering/base/BaseRenderTarget.hh:188
virtual void SetDevicePixelRatio(const double _ratio)
Set the device to pixel ratio.
Definition: gz/rendering/base/BaseRenderTarget.hh:332
virtual ~BaseRenderTexture()
Definition: gz/rendering/base/BaseRenderTarget.hh:283
BaseRenderTarget()
Definition: gz/rendering/base/BaseRenderTarget.hh:141
static PixelFormat Sanitize(PixelFormat _format)
Sanitize given format. If the given value is invalid, PF_UNKNOWN will be returned,...
bool renderPassDirty
Flag to indicate if render pass need to be rebuilt.
Definition: gz/rendering/base/BaseRenderTarget.hh:87
virtual double DevicePixelRatio() const
Get the device to pixel ratio.
Definition: gz/rendering/base/BaseRenderTarget.hh:325
T endl(T... args)
Definition: gz/rendering/base/BaseRenderTarget.hh:35
bool targetDirty
Definition: gz/rendering/base/BaseRenderTarget.hh:84
shared_ptr< RenderPass > RenderPassPtr
Shared pointer to RenderPass.
Definition: gz/rendering/RenderTypes.hh:227
std::string handle
Definition: gz/rendering/base/BaseRenderTarget.hh:132
unsigned int width
Definition: gz/rendering/base/BaseRenderTarget.hh:89
@ PF_UNKNOWN
< Unknown or errant type
Definition: gz/rendering/PixelFormat.hh:35
virtual void OnMove()
Alert the window of a window move event.
Definition: gz/rendering/base/BaseRenderTarget.hh:350
virtual ~BaseRenderTarget()
Definition: gz/rendering/base/BaseRenderTarget.hh:147
Definition: gz/rendering/base/BaseRenderTarget.hh:111
virtual void SetFormat(PixelFormat _format) override
Set the render target image format.
Definition: gz/rendering/base/BaseRenderTarget.hh:218
double ratio
Definition: gz/rendering/base/BaseRenderTarget.hh:134
Definition: gz/rendering/base/BaseRenderTarget.hh:98
virtual void RebuildImpl()=0