Trait Renderer

Source
pub trait Renderer<WORLD: Send + Sync + 'static>: Send + Sync {
    type Error: Debug;

    // Required method
    fn render(&mut self, world: Arc<RwLock<WORLD>>) -> Result<(), Self::Error>;
}
Expand description

Rendering Engine Trait

Required Associated Types§

Required Methods§

Source

fn render(&mut self, world: Arc<RwLock<WORLD>>) -> Result<(), Self::Error>

Render the necessary contents of the world

Implementors§