[][src]Struct processing::framebuffer::MultiOutputFrameBuffer

pub struct MultiOutputFrameBuffer<'a> { /* fields omitted */ }

This struct is useless for the moment.

Methods

impl<'a> MultiOutputFrameBuffer<'a>[src]

pub fn new<F, I, A>(
    facade: &F,
    color_attachments: I
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    A: ToColorAttachment<'a>,
    F: Facade + ?Sized,
    I: IntoIterator<Item = (&'a str, A)>, 
[src]

Creates a new MultiOutputFrameBuffer.

Panic

Panics if all attachments don't have the same dimensions.

pub fn with_depth_buffer<F, D, I, A>(
    facade: &F,
    color_attachments: I,
    depth: D
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    A: ToColorAttachment<'a>,
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized,
    I: IntoIterator<Item = (&'a str, A)>, 
[src]

Creates a MultiOutputFrameBuffer with a depth buffer.

Panic

Panics if all attachments don't have the same dimensions.

pub fn with_depth_and_stencil_buffer<A, F, I, D, S>(
    facade: &F,
    color: I,
    depth: D,
    stencil: S
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    A: ToColorAttachment<'a>,
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized,
    I: IntoIterator<Item = (&'a str, A)>,
    S: ToStencilAttachment<'a>, 
[src]

Creates a MultiOutputFrameBuffer with a depth buffer, and a stencil buffer.

Panic

Panics if all attachments don't have the same dimensions.

pub fn with_stencil_buffer<A, F, I, S>(
    facade: &F,
    color: I,
    stencil: S
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    A: ToColorAttachment<'a>,
    F: Facade + ?Sized,
    I: IntoIterator<Item = (&'a str, A)>,
    S: ToStencilAttachment<'a>, 
[src]

Creates a MultiOutputFrameBuffer with a stencil buffer, but no depth buffer.

Panic

Panics if all attachments don't have the same dimensions.

pub fn with_depth_stencil_buffer<A, F, I, D>(
    facade: &F,
    color: I,
    depthstencil: D
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    A: ToColorAttachment<'a>,
    D: ToDepthStencilAttachment<'a>,
    F: Facade + ?Sized,
    I: IntoIterator<Item = (&'a str, A)>, 
[src]

Creates a MultiOutputFrameBuffer with a depth-stencil buffer.

Panic

Panics if all attachments don't have the same dimensions.

Trait Implementations

impl<'a> Surface for MultiOutputFrameBuffer<'a>[src]

fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target.

fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target. The color is in sRGB format.

fn clear_depth(&mut self, value: f32)[src]

Clears the depth attachment of the target.

fn clear_stencil(&mut self, value: i32)[src]

Clears the stencil attachment of the target.

fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)[src]

Clears the color and depth attachments of the target.

fn clear_color_srgb_and_depth(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32
)
[src]

Clears the color and depth attachments of the target. The color is in sRGB format.

fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)[src]

Clears the color and stencil attachments of the target.

fn clear_color_srgb_and_stencil(
    &mut self,
    color: (f32, f32, f32, f32),
    stencil: i32
)
[src]

Clears the color and stencil attachments of the target. The color is in sRGB format.

fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)[src]

Clears the depth and stencil attachments of the target.

fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)[src]

Clears the color, depth and stencil attachments of the target.

fn clear_all_srgb(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32,
    stencil: i32
)
[src]

Clears the color, depth and stencil attachments of the target. The color is in sRGB format.

fn has_depth_buffer(&self) -> bool[src]

Returns true if the surface has a depth buffer available.

fn has_stencil_buffer(&self) -> bool[src]

Returns true if the surface has a stencil buffer available.

fn blit_whole_color_to<S>(
    &self,
    target: &S,
    target_rect: &BlitTarget,
    filter: MagnifySamplerFilter
) where
    S: Surface
[src]

Copies the entire surface to a target surface. See blit_color.

fn fill<S>(&self, target: &S, filter: MagnifySamplerFilter) where
    S: Surface
[src]

Copies the entire surface to the entire target. See blit_color.

Auto Trait Implementations

impl<'a> !Send for MultiOutputFrameBuffer<'a>

impl<'a> !Sync for MultiOutputFrameBuffer<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]