RenderTarget
Inherited: None
Description
Public Methods
Texture * |
colorAttachment (uint32_t index) const |
uint32_t |
colorAttachmentCount () const |
Texture * |
depthAttachment () const |
uint32_t |
setColorAttachment (uint32_t index, Texture * texture) |
void |
setDepthAttachment (Texture * texture) |
Static Methods
None
Methods Description
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().
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().