add plugins

cargo fmt
This commit is contained in:
rezural
2020-12-20 04:27:20 +11:00
parent 5634c51fe6
commit 315b84a85e
3 changed files with 63 additions and 53 deletions

View File

@@ -10,3 +10,10 @@ pub trait TestbedPlugin {
fn draw(&mut self);
fn profiling_string(&self) -> String;
}
pub trait HarnessPlugin {
//FIXME: is run_callbacks needed?
fn run_callbacks(&mut self, physics: &mut PhysicsState, t: f32);
fn step(&mut self, physics: &mut PhysicsState);
fn profiling_string(&self) -> String;
}