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: C) -> Result<SimpleFrameBuffer<'a>, ValidationError> where C: ToColorAttachment<'a>, 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: C, depth: D) -> Result<SimpleFrameBuffer<'a>, ValidationError> where C: ToColorAttachment<'a>, D: ToDepthAttachment<'a>, 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: C, depth: D, stencil: S) -> Result<SimpleFrameBuffer<'a>, ValidationError> where C: ToColorAttachment<'a>, D: ToDepthAttachment<'a>, S: ToStencilAttachment<'a>, 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: C, stencil: S) -> Result<SimpleFrameBuffer<'a>, ValidationError> where C: ToColorAttachment<'a>, S: ToStencilAttachment<'a>, 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: C, depthstencil: D) -> Result<SimpleFrameBuffer<'a>, ValidationError> where C: ToColorAttachment<'a>, D: ToDepthStencilAttachment<'a>, F: Facade
Creates a SimpleFrameBuffer
with a single color attachment and a depth-stencil buffer.