BaseRenderTarget.hh
Go to the documentation of this file.
virtual ~BaseRenderTarget()
Definition: BaseRenderTarget.hh:150
virtual unsigned int GLId() const override
Returns the OpenGL texture Id. A valid Id is returned only.
Definition: BaseRenderTarget.hh:292
virtual PixelFormat Format() const override
Set the render target image format.
Definition: BaseRenderTarget.hh:214
virtual void SetHeight(const unsigned int _height) override
Set the render target height in pixels.
Definition: BaseRenderTarget.hh:206
Definition: BaseRenderTarget.hh:98
virtual void AddRenderPass(const RenderPassPtr &_pass) override
Add a render pass to the render target.
Definition: BaseRenderTarget.hh:236
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:166
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:265
T endl(T... args)
virtual ~BaseRenderWindow()
Definition: BaseRenderTarget.hh:313
Definition: BaseRenderTarget.hh:35
virtual void RemoveRenderPass(const RenderPassPtr &_pass) override
Remove a render pass from the render target.
Definition: BaseRenderTarget.hh:244
virtual unsigned int RenderPassCount() const override
Get the number of render passes applied to the render target.
Definition: BaseRenderTarget.hh:258
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:229
STL class.
virtual void SetWidth(const unsigned int _width) override
Set the render target width in pixels.
Definition: BaseRenderTarget.hh:191
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:341
virtual void SetHandle(const std::string &_handle)
Set the window handle to attach the render window to.
Definition: BaseRenderTarget.hh:326
virtual void Rebuild()
Definition: BaseRenderTarget.hh:173
shared_ptr< RenderPass > RenderPassPtr
Shared pointer to RenderPass.
Definition: RenderTypes.hh:222
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:156
virtual unsigned int Height() const override
Get render target height in pixels.
Definition: BaseRenderTarget.hh:199
Definition: BaseRenderTarget.hh:114
virtual unsigned int Width() const override
Get render target width in pixels.
Definition: BaseRenderTarget.hh:184
virtual double DevicePixelRatio() const
Get the device to pixel ratio.
Definition: BaseRenderTarget.hh:334
virtual void MetalId(void *_textureIdPtr) const override
Gets the Metal texture id. A valid Id is obtained only if this is an Metal render texture...
Definition: BaseRenderTarget.hh:299
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node...
Definition: Scene.hh:49
virtual std::string Handle() const
Get the window handle that the render window is attached to.
Definition: BaseRenderTarget.hh:319
Represents a off-screen render-texture to which cameras can render images.
Definition: RenderTarget.hh:103
T find(T... args)
STL class.
Represents a on-screen render-window to which cameras can render images.
Definition: RenderTarget.hh:126
#define ignerr
virtual void SetFormat(PixelFormat _format) override
Set the render target image format.
Definition: BaseRenderTarget.hh:221
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:144
virtual ~BaseRenderTexture()
Definition: BaseRenderTarget.hh:286
BaseRenderTexture()
Definition: BaseRenderTarget.hh:280
virtual void OnMove()
Alert the window of a window move event.
Definition: BaseRenderTarget.hh:359
BaseRenderWindow()
Definition: BaseRenderTarget.hh:307
virtual void OnResize(const unsigned int _width, const unsigned int _height)
Alert the window of a window resize event.
Definition: BaseRenderTarget.hh:349