Trait orbtk_tinyskia::PipelineTrait
source · [−]pub trait PipelineTrait: RenderPipeline + Any + Send {
fn box_eq(&self, other: &dyn Any) -> bool;
fn as_any(&self) -> &dyn Any;
fn clone_box(&self) -> Box<dyn PipelineTrait>;
fn draw_pipeline(&self, image: &mut RenderTarget) { ... }
}
Expand description
Used to implement a custom render pipeline.
Required methods
fn clone_box(&self) -> Box<dyn PipelineTrait>
fn clone_box(&self) -> Box<dyn PipelineTrait>
Clones self as box.
Provided methods
fn draw_pipeline(&self, image: &mut RenderTarget)
fn draw_pipeline(&self, image: &mut RenderTarget)
Draws the ctx of the pipeline.