aleatico 0.1.0

stub package for fennel engine graphics
Documentation
//! Provides a [`Controller`] trait

use crate::state::State;

/// App controller trait
pub trait Controller {
    /// Handle app resize
    #[allow(unused_variables)]
    fn resize(&mut self, state: &mut State, width: u32, height: u32) {}
    /// Update app
    #[allow(unused_variables)]
    fn update(&mut self, state: &mut State) {}
    /// Render app
    #[allow(unused_variables)]
    fn render(&mut self, state: &mut State) {}
    /// Handle a window event
    #[allow(unused_variables)]
    fn handle_event(&mut self, state: &mut State, event: &winit::event::WindowEvent) {}
}