Trait luminance::framebuffer::ColorSlot [] [src]

pub trait ColorSlot<L, D> where L: Layerable, D: Dimensionable, D::Size: Copy {
    fn color_formats() -> Vec<PixelFormat>;
    fn reify_textures(size: D::Size,
                      mipmaps: usize,
                      textures: &mut Vec<GLuint>)
                      -> Self; }

A framebuffer has a color slot. A color slot can either be empty (the unit type is used,()) or several color formats.

Required Methods

Turn a color slot into a list of pixel formats.

Reify a list of raw textures into a color slot.

Implementors