pub trait DrawerSystem {
    fn draw(&self, args: DrawerArgs<'_>);

    fn priority(&self) -> i32 { ... }
}
Expand description

A system that handles drawing logic every frame, typically giving Entities behaviors based on which Components they have. Mutable access to the Components is not permitted, as this could lead to behavior that is framerate-dependent.

Required Methods

Called once every render frame. This is where you draw your sprites and other graphics. This may be called multiple times between logic frames if frame interpolation is available. In such a scenario, use the value in DrawerArgs::interpolation to perform this interpolation.

Provided Methods

Used to determine the order of execution of each DrawerSystem. Lower number priority systems are executed first.

Implementors