Trait cushy::SimpleRenderOperation

source ·
pub trait SimpleRenderOperation:
    Send
    + Sync
    + 'static {
    // Required methods
    fn new(graphics: &mut Graphics<'_>) -> Self;
    fn render(
        &self,
        origin: Point<Px>,
        opacity: f32,
        graphics: &mut RenderingGraphics<'_, '_>,
    );
}
Expand description

A RenderOperation with no per-drawing-call state.

Required Methods§

source

fn new(graphics: &mut Graphics<'_>) -> Self

Returns a new instance of this render operation.

source

fn render( &self, origin: Point<Px>, opacity: f32, graphics: &mut RenderingGraphics<'_, '_>, )

Render to graphics at origin with opacity.

Object Safety§

This trait is not object safe.

Implementors§