[−][src]Struct glium::framebuffer::MultiOutputFrameBuffer
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]
facade: &F,
color_attachments: I
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError> where
F: Facade,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
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]
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>,
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]
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,
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]
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>,
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]
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>,
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(
&mut self,
rect: Option<&Rect>,
color: Option<(f32, f32, f32, f32)>,
color_srgb: bool,
depth: Option<f32>,
stencil: Option<i32>
)[src]
&mut self,
rect: Option<&Rect>,
color: Option<(f32, f32, f32, f32)>,
color_srgb: bool,
depth: Option<f32>,
stencil: Option<i32>
)
fn get_dimensions(&self) -> (u32, u32)[src]
fn get_depth_buffer_bits(&self) -> Option<u16>[src]
fn get_stencil_buffer_bits(&self) -> Option<u16>[src]
fn draw<'i, 'v, V, I, U>(
&mut self,
vb: V,
ib: I,
program: &Program,
uniforms: &U,
draw_parameters: &DrawParameters<'_>
) -> Result<(), DrawError> where
I: Into<IndicesSource<'i>>,
U: Uniforms,
V: MultiVerticesSource<'v>, [src]
&mut self,
vb: V,
ib: I,
program: &Program,
uniforms: &U,
draw_parameters: &DrawParameters<'_>
) -> Result<(), DrawError> where
I: Into<IndicesSource<'i>>,
U: Uniforms,
V: MultiVerticesSource<'v>,
fn blit_color<S>(
&self,
source_rect: &Rect,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
) where
S: Surface, [src]
&self,
source_rect: &Rect,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
) where
S: Surface,
fn blit_from_frame(
&self,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)[src]
&self,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)
fn blit_from_simple_framebuffer(
&self,
source: &SimpleFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)[src]
&self,
source: &SimpleFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)
fn blit_from_multioutput_framebuffer(
&self,
source: &MultiOutputFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)[src]
&self,
source: &MultiOutputFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
)
fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]
fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]
fn clear_depth(&mut self, value: f32)[src]
fn clear_stencil(&mut self, value: i32)[src]
fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)[src]
fn clear_color_srgb_and_depth(
&mut self,
color: (f32, f32, f32, f32),
depth: f32
)[src]
&mut self,
color: (f32, f32, f32, f32),
depth: f32
)
fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)[src]
fn clear_color_srgb_and_stencil(
&mut self,
color: (f32, f32, f32, f32),
stencil: i32
)[src]
&mut self,
color: (f32, f32, f32, f32),
stencil: i32
)
fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)[src]
fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)[src]
fn clear_all_srgb(
&mut self,
color: (f32, f32, f32, f32),
depth: f32,
stencil: i32
)[src]
&mut self,
color: (f32, f32, f32, f32),
depth: f32,
stencil: i32
)
fn has_depth_buffer(&self) -> bool[src]
fn has_stencil_buffer(&self) -> bool[src]
fn blit_whole_color_to<S>(
&self,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
) where
S: Surface, [src]
&self,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter
) where
S: Surface,
fn fill<S>(&self, target: &S, filter: MagnifySamplerFilter) where
S: Surface, [src]
S: Surface,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,