Struct luminance::chain::Chain
[−]
[src]
pub struct Chain<A, B>(pub A, pub B);
The generalized free tuple.
You can create arbitrary chains by nesting Chain
types, or use the chain!
type macro if your
compiler allows you to.
Examples
type Foo = Chain<i32,Chain<bool,f32>>; type Bar = Chain<Chain<i32, bool>, f32>; type Zoo = chain![i32, bool, f32]; // Zoo == Foo
Trait Implementations
impl<L, D, P, B> ColorSlot<L, D> for Chain<Texture<L, D, P>, B> where L: Layerable,
D: Dimensionable,
D::Size: Copy,
P: ColorPixel + RenderablePixel,
B: ColorSlot<L, D>
[src]
D: Dimensionable,
D::Size: Copy,
P: ColorPixel + RenderablePixel,
B: ColorSlot<L, D>
fn color_formats() -> Vec<PixelFormat>
Turn a color slot into a list of pixel formats.
fn reify_textures(size: D::Size,
mipmaps: usize,
textures: &mut Vec<GLuint>)
-> Self
mipmaps: usize,
textures: &mut Vec<GLuint>)
-> Self
Reify a list of raw textures into a color slot.