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