RenderTarget¶
Inherited: None
Description¶
Public Methods¶
int |
clearFlags () const |
Texture * |
colorAttachment (uint32_t index) const |
uint32_t |
colorAttachmentCount () const |
Texture * |
depthAttachment () const |
void |
renderArea (int32_t & x, int32_t & y, int32_t & width, int32_t & height) const |
void |
setClearFlags (int flags) |
uint32_t |
setColorAttachment (uint32_t index, Texture * texture) |
void |
setDepthAttachment (Texture * texture) |
void |
setRenderArea (int32_t x, int32_t y, int32_t width, int32_t height) |
Static Methods¶
None
Methods Description¶
int RenderTarget::clearFlags () const
Returns clear buffers startegy used on render target bind.
See also setClearFlags().
Texture * RenderTarget::colorAttachment (uint32_t index) const
Returns the attached color textures with index.
See also setColorAttachment().
uint32_t RenderTarget::colorAttachmentCount () const
Returns the number of attached color textures.
Texture * RenderTarget::depthAttachment () const
Returns an attached depth texture if exist.
See also setDepthAttachment().
void RenderTarget::renderArea (int32_t & x, int32_t & y, int32_t & width, int32_t & height) const
/*! Retrieves the renderable area rectangle within this render target.
This method returns the viewport or scissor rectangle that defines the actual rendering area available for drawing operations. The area is typically used for setting up the viewport, scissor test, or clearing operations.
This method accepts several output parameters x y width and height.
See also setRenderArea().
void RenderTarget::setClearFlags (int flags)
Sets clear buffers startegy on bind using clear flags.
See also clearFlags().
uint32_t RenderTarget::setColorAttachment (uint32_t index, Texture * texture)
Attach a color texture at index to render target.
See also colorAttachment().
void RenderTarget::setDepthAttachment (Texture * texture)
Attach a depth texture to render target.
See also depthAttachment().
void RenderTarget::setRenderArea (int32_t x, int32_t y, int32_t width, int32_t height)
Sets rendering area at x y position and width height dimensions.
See also renderArea().