OffscreenRenderTarget

Trait OffscreenRenderTarget 

Source
pub trait OffscreenRenderTarget {
    // Required methods
    fn render<ActionIter>(&mut self, actions: ActionIter)
       where ActionIter: IntoIterator<Item = RenderAction>;
    fn realize(self) -> Vec<u8> ;
}
Expand description

Trait implemented by FlowBetween offscreen render targets

Required Methods§

Source

fn render<ActionIter>(&mut self, actions: ActionIter)
where ActionIter: IntoIterator<Item = RenderAction>,

Sends render actions to this offscreen render target

Source

fn realize(self) -> Vec<u8>

Consumes this render target and returns the realized pixels as a byte array

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§