Skip to main content

RenderInterface

Trait RenderInterface 

Source
pub trait RenderInterface {
    // Required methods
    fn update<'a, T, U>(&mut self, data: T)
       where T: Iterator<Item = U>,
             U: Into<&'a SpriteCell>;
    fn get_fps(&self) -> f32;
}
Expand description

Interface for EngineDriver -> Renderer communication.

Required Methods§

Source

fn update<'a, T, U>(&mut self, data: T)
where T: Iterator<Item = U>, U: Into<&'a SpriteCell>,

Update the sprite matrix with the provided data.

Source

fn get_fps(&self) -> f32

Get the current FPS

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§