Skip to main content

IRenderLoopTask

Trait IRenderLoopTask 

Source
pub trait IRenderLoopTask: Send + Sync {
    // Required method
    fn render(&self) -> bool;
}
Expand description

A task polled by the render loop on each tick.

Tasks are shared with the render timer’s thread, so they must be thread-safe.

Required Methods§

Source

fn render(&self) -> bool

Renders the task. Returns true when the task wants the next tick of the render loop.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§