Trait gfx::render::target::Output [] [src]

pub trait Output<R: Resources> {
    fn get_size(&self) -> (Size, Size);

    fn get_handle(&self) -> Option<&FrameBuffer<R>> { ... }
    fn get_colors(&self) -> &[Plane<R>] { ... }
    fn get_depth(&self) -> Option<&Plane<R>> { ... }
    fn get_stencil(&self) -> Option<&Plane<R>> { ... }
    fn get_gamma(&self) -> Gamma { ... }
    fn get_mask(&self) -> Mask { ... }
}

A generic rendering output, consisting of multiple planes.

Required Methods

fn get_size(&self) -> (Size, Size)

Get canvas dimensions.

Provided Methods

fn get_handle(&self) -> Option<&FrameBuffer<R>>

Get an associated device handle, if any.

fn get_colors(&self) -> &[Plane<R>]

Get array of color planes.

fn get_depth(&self) -> Option<&Plane<R>>

Get depth plane, if any.

fn get_stencil(&self) -> Option<&Plane<R>>

Get stencil plane, if any.

fn get_gamma(&self) -> Gamma

Check if it converts gamma of the output colors.

fn get_mask(&self) -> Mask

Get the output surface mask.

Implementors