[][src]Struct dali::DaliPipeline

pub struct DaliPipeline<C> { /* fields omitted */ }

Launches and executes end-to-end Dali renders. preview_canvas allows live previews, and render_canvas returns image-rs buffers.

Methods

impl DaliPipeline<GlfwSurface>[src]

pub fn colormap<F>(&mut self, size: [u32; 2], lambda: F) -> ColormapHandle where
    F: Fn(f32, f32) -> [f32; 4]
[src]

pub fn colormap_from_image(&mut self, image: RgbaImage) -> ColormapHandle[src]

pub fn texture_from_image(
    &mut self,
    image: GrayImage,
    mipmaps: usize
) -> TextureHandle
[src]

pub fn texture<T: TextureRenderer>(
    &mut self,
    texture_renderer: &T
) -> TextureHandle
[src]

pub fn preview_canvas<'a, F>(&'a mut self, callback: F) where
    F: FnOnce(&mut CanvasGate<'a>), 
[src]

Prepares an interactive window, renders, and shows the result

pub fn render_canvas<'a, F>(
    &'a mut self,
    size: [u32; 2],
    callback: F
) -> ImageBuffer<Rgba<u8>, Vec<u8>> where
    F: FnOnce(&mut CanvasGate<'a>), 
[src]

Renders to an offscreen framebuffer, and returns the result as a DynamicImage TODO: high resolution rendering TODO: convert raw texels to Image DynamicImage TODO: add feature flag for image-rs dependency

Auto Trait Implementations

impl<C> Send for DaliPipeline<C> where
    C: Send

impl<C> Unpin for DaliPipeline<C> where
    C: Unpin

impl<C> Sync for DaliPipeline<C> where
    C: Sync

impl<C> UnwindSafe for DaliPipeline<C> where
    C: UnwindSafe

impl<C> RefUnwindSafe for DaliPipeline<C> where
    C: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T