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]
fn named<N: Into<String>>(name: N) -> TargetBuilder
[src]
Creates a new TargetBuilder with the given name.
fn clear_color<V: Into<[f32; 4]>>(&self, enc: &mut Encoder, value: V)
[src]
Clears all color buffers to the given value.
fn clear_depth_stencil<V: Into<f32>>(&self, enc: &mut Encoder, value: V)
[src]
Clears the depth stencil buffer to the given value.
fn size(&self) -> (u32, u32)
[src]
Returns the width and height of the render target, measured in pixels.
fn color_buf(&self, i: usize) -> Option<&ColorBuffer>
[src]
Returns the color buffer with index i
.
fn color_bufs(&self) -> &[ColorBuffer]
[src]
Returns an array slice of the render target's color buffers.
fn depth_buf(&self) -> Option<&DepthBuffer>
[src]
Returns the render target's depth-stencil buffer, if it has one.
fn resize_main_target(&mut self, window: &GlWindow)
[src]
Creates the OpenGL backend.
Trait Implementations
impl Clone for Target
[src]
fn clone(&self) -> Target
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more