Trait luminance::framebuffer::HasFramebuffer [] [src]

pub trait HasFramebuffer: HasTexture + Sized {
    type Framebuffer;
    fn new_framebuffer<L, D, CS, DS>(size: D::Size,
                                     mipmaps: usize)
                                     -> Result<(Self::Framebuffer, Vec<Self::ATexture>, Option<Self::ATexture>)> where L: Layerable,
              D: Dimensionable,
              D::Size: Copy,
              CS: ColorSlot<Self, L, D>,
              DS: DepthSlot<Self, L, D>
; fn free_framebuffer(framebuffer: &mut Self::Framebuffer); fn default_framebuffer<D>(size: D::Size) -> Self::Framebuffer where D: Dimensionable, D::Size: Copy; }

Trait to implement to provide framebuffer features.

When creating a new framebuffer with new_framebuffer, the color and depth formats are passed and should be used to create internal textures and/or buffers to represent the slots.

Associated Types

Framebuffer representation.

Required Methods

Create a new framebuffer.

Free a framebuffer.

Default framebuffer.

Implementors