Struct amethyst_renderer::Target [] [src]

pub struct Target { /* fields omitted */ }

A render target.

Each render target contains a certain number of color buffers and an optional depth buffer.

Methods

impl Target
[src]

[src]

Creates a new TargetBuilder with the given name.

[src]

Clears all color buffers to the given value.

[src]

Clears the depth stencil buffer to the given value.

[src]

Returns the width and height of the render target, measured in pixels.

[src]

Returns the color buffer with index i.

[src]

Returns an array slice of the render target's color buffers.

[src]

Returns the render target's depth-stencil buffer, if it has one.

[src]

Creates the OpenGL backend.

Trait Implementations

impl Clone for Target
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Target
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Target
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.