Struct gfx::render::target::Frame [] [src]

pub struct Frame<R: Resources> {
    pub width: Size,
    pub height: Size,
    pub colors: Vec<Plane<R>>,
    pub depth: Option<Plane<R>>,
    pub stencil: Option<Plane<R>>,
    pub gamma: Gamma,
}

A complete Frame, which is the result of rendering.

Fields

width

The width of the viewport.

height

The height of the viewport.

colors

Each color component has its own buffer.

depth

The depth buffer for this frame.

stencil

The stencil buffer for this frame.

gamma

Color space.

Methods

impl<R: Resources> Frame<R>

fn empty(width: Size, height: Size) -> Frame<R>

Create an empty Frame.

Trait Implementations

impl<R: Resources> Output<R> for Frame<R>

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

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_handle(&self) -> Option<&FrameBuffer<R>>

fn get_mask(&self) -> Mask

Derived Implementations

impl<R: Debug + Resources> Debug for Frame<R> where R: Debug, R: Debug, R: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<R: PartialEq + Resources> PartialEq for Frame<R> where R: PartialEq, R: PartialEq, R: PartialEq

fn eq(&self, __arg_0: &Frame<R>) -> bool

fn ne(&self, __arg_0: &Frame<R>) -> bool

impl<R: Clone + Resources> Clone for Frame<R> where R: Clone, R: Clone, R: Clone

fn clone(&self) -> Frame<R>

fn clone_from(&mut self, source: &Self)