iv/src/subengine.rs
Steins7 7f37ee7a24 Implemented Controller
* reworked input system
+ added Subengines system
+ added Subengines pipeline system
!(old) some framebuffer error present
!(old) may crash during swapchain recreation
! crashes randomly while running
2021-01-18 10:28:59 +01:00

23 lines
689 B
Rust

#[allow(unused_imports)]
use log::{debug, error, info, trace, warn};
pub mod subengine_controller;
pub use self::subengine_controller::SubengineController;
pub mod subengine_pipeline;
pub use self::subengine_pipeline::SubenginePipeline;
pub mod test_subengine;
pub use self::test_subengine::TestSubengine;
//--SubEngine trait------------------------------------------------------------------------------------
/// A trait that should be implemented by all subengines running it the game engine.
///
/// Allow the [`Controller`] to run custom subengines.
pub trait Subengine {
/// Main function of the subengine. Called byt the [`Controller`] for each frame.
fn run(&self);
}