Skip to main content

Renderer

Trait Renderer 

Source
pub trait Renderer<WORLD>: Send + Sync
where WORLD: Send + Sync + 'static,
{ type Error: Debug; // Required method fn render(&mut self, world: Arc<RwLock<WORLD>>) -> Result<(), Self::Error>; }
Expand description

Re-export of Nate’s Engine Core 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§