RenderTarget

Inherited: Resource

Description

Public Methods

Texture *

colorAttachment (int index) const

int

colorAttachmentCount () const

Texture *

depthAttachment () const

int

setColorAttachment (in int, Texture * )

void

setDepthAttachment (Texture * texture)

Static Methods

None

Methods Description

:ref:`Texture<api_Texture>`* RenderTarget::colorAttachment (int index) const

Returns the attached color textures with index.

See also setColorAttachment().


int RenderTarget::colorAttachmentCount () const

Returns the number of attached color textures.


:ref:`Texture<api_Texture>`* RenderTarget::depthAttachment () const

Returns an attached depth texture if exist.

See also setDepthAttachment().


int RenderTarget::setColorAttachment (in int, 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().