[−][src]Struct dali::DaliPipeline
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]
F: Fn(f32, f32) -> [f32; 4],
pub fn colormap_from_image(&mut self, image: RgbaImage) -> ColormapHandle
[src]
pub fn mask_from_image(
&mut self,
image: GrayImage,
mipmaps: usize
) -> MaskHandle
[src]
&mut self,
image: GrayImage,
mipmaps: usize
) -> MaskHandle
pub fn texture_from_image(
&mut self,
image: GrayImage,
mipmaps: usize
) -> TextureHandle
[src]
&mut self,
image: GrayImage,
mipmaps: usize
) -> TextureHandle
pub fn texture<T: TextureRenderer>(
&mut self,
texture_renderer: &T
) -> TextureHandle
[src]
&mut self,
texture_renderer: &T
) -> TextureHandle
pub fn preview_canvas<'a, F>(&'a mut self, callback: F) -> PreviewAction where
F: FnOnce(&mut CanvasGate<'a>),
[src]
F: FnOnce(&mut CanvasGate<'a>),
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]
&'a mut self,
size: [u32; 2],
callback: F
) -> ImageBuffer<Rgba<u8>, Vec<u8>> where
F: FnOnce(&mut CanvasGate<'a>),
Renders to an offscreen framebuffer, and returns the result as a DynamicImage TODO: add feature flag for image-rs dependency
Auto Trait Implementations
impl<C> !Send for DaliPipeline<C>
impl<C> !Sync for DaliPipeline<C>
impl<C> Unpin for DaliPipeline<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for DaliPipeline<C>
impl<C> !RefUnwindSafe for DaliPipeline<C>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,