[][src]Struct glium::framebuffer::MultiOutputFrameBuffer

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

This struct is useless for the moment.

Implementations

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

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

Creates a new MultiOutputFrameBuffer.

Panic

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

pub fn with_depth_buffer<F: ?Sized, D, I, A>(
    facade: &F,
    color_attachments: I,
    depth: D
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    F: Facade,
    D: ToDepthAttachment<'a>,
    I: IntoIterator<Item = (&'a str, A)>,
    A: ToColorAttachment<'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: ?Sized, I, D, S>(
    facade: &F,
    color: I,
    depth: D,
    stencil: S
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    D: ToDepthAttachment<'a>,
    I: IntoIterator<Item = (&'a str, A)>,
    S: ToStencilAttachment<'a>,
    A: ToColorAttachment<'a>,
    F: Facade
[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: ?Sized, I, S>(
    facade: &F,
    color: I,
    stencil: S
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    S: ToStencilAttachment<'a>,
    F: Facade,
    I: IntoIterator<Item = (&'a str, A)>,
    A: ToColorAttachment<'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: ?Sized, I, D>(
    facade: &F,
    color: I,
    depthstencil: D
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
    D: ToDepthStencilAttachment<'a>,
    F: Facade,
    I: IntoIterator<Item = (&'a str, A)>,
    A: ToColorAttachment<'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][+]

Auto Trait Implementations

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

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

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

impl<'a> Unpin for MultiOutputFrameBuffer<'a>

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src][+]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.