Struct glium::framebuffer::SimpleFrameBuffer
[−]
[src]
pub struct SimpleFrameBuffer<'a> {
// some fields omitted
}A framebuffer which has only one color attachment.
Methods
impl<'a> SimpleFrameBuffer<'a>
fn new<F, C>(facade: &F, color: &'a C) -> SimpleFrameBuffer<'a> where C: ToColorAttachment, F: Facade
Creates a SimpleFrameBuffer with a single color attachment and no depth
nor stencil buffer.
fn with_depth_buffer<F, C, D>(facade: &F, color: &'a C, depth: &'a D) -> SimpleFrameBuffer<'a> where C: ToColorAttachment, D: ToDepthAttachment, F: Facade
Creates a SimpleFrameBuffer with a single color attachment and a depth
buffer, but no stencil buffer.
fn with_depth_and_stencil_buffer<F, C, D, S>(facade: &F, color: &'a C, depth: &'a D, stencil: &'a S) -> SimpleFrameBuffer<'a> where C: ToColorAttachment, D: ToDepthAttachment, S: ToStencilAttachment, F: Facade
Creates a SimpleFrameBuffer with a single color attachment, a depth
buffer, and a stencil buffer.
fn with_stencil_buffer<F, C, S>(facade: &F, color: &'a C, stencil: &'a S) -> SimpleFrameBuffer<'a> where C: ToColorAttachment, S: ToStencilAttachment, F: Facade
Creates a SimpleFrameBuffer with a single color attachment and a stencil
buffer, but no depth buffer.
fn with_depth_stencil_buffer<F, C, D>(facade: &F, color: &'a C, depthstencil: &'a D) -> SimpleFrameBuffer<'a> where C: ToColorAttachment, D: ToDepthStencilAttachment, F: Facade
Creates a SimpleFrameBuffer with a single color attachment and a depth-stencil buffer.