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