RenderTargetΒΆ

Inherited: Resource

DescriptionΒΆ

Public MethodsΒΆ

const Vector4 &

clearColor () 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

setClearColor (const Vector4 & color)

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)

int32_t

tileIndex () const

Static MethodsΒΆ

None

Methods DescriptionΒΆ

const Vector4 & RenderTarget::clearColor () const

Returns color that will be used to clear attached targets.

See also setClearColor().


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::setClearColor (Vector4 & color)

Sets the color that will be used to clear attached targets.

See also clearColor().


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().


int32_t RenderTarget::tileIndex () const

Returns current tile index.