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<I>(
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self
where
I: Iterator<Item = GLuint>; }
A framebuffer has a color slot. A color slot can either be empty (the unit type is used,()
)
or several color formats.
Required Methods
fn color_formats() -> Vec<PixelFormat>
Turn a color slot into a list of pixel formats.
fn reify_textures<I>(size: D::Size, mipmaps: usize, textures: &mut I) -> Self where
I: Iterator<Item = GLuint>,
I: Iterator<Item = GLuint>,
Reify a list of raw textures into a color slot.
Implementors
impl<L, D> ColorSlot<L, D> for () where
L: Layerable,
D: Dimensionable,
D::Size: Copy,impl<L, D, P> ColorSlot<L, D> for Texture<L, D, P> where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: ColorPixel + RenderablePixel,impl<L, D, P, B> ColorSlot<L, D> for GTup<Texture<L, D, P>, B> where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: ColorPixel + RenderablePixel,
B: ColorSlot<L, D>,impl<L, D, P0, P1> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4, P5> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4, P5, P6> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7, P8> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,impl<L, D, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> ColorSlot<L, D> for (Texture<L, D, P0>, Texture<L, D, P1>, Texture<L, D, P2>, Texture<L, D, P3>, Texture<L, D, P4>, Texture<L, D, P5>, Texture<L, D, P6>, Texture<L, D, P7>, Texture<L, D, P8>, Texture<L, D, P9>) where
L: Layerable,
D: Dimensionable,
D::Size: Copy,
P0: ColorPixel + RenderablePixel,
P1: ColorPixel + RenderablePixel,
P2: ColorPixel + RenderablePixel,
P3: ColorPixel + RenderablePixel,
P4: ColorPixel + RenderablePixel,
P5: ColorPixel + RenderablePixel,
P6: ColorPixel + RenderablePixel,
P7: ColorPixel + RenderablePixel,
P8: ColorPixel + RenderablePixel,
P9: ColorPixel + RenderablePixel,