make examples compile, code that accessed window & graphics via the callback is currently disabled, until that is added back in

This commit is contained in:
rezural
2020-12-31 13:24:29 +11:00
parent d992ebc488
commit f782013947
9 changed files with 36 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Setup a callback to control the platform.
*/
testbed.add_callback(move |_, physics, _, _, run_state| {
testbed.harness_mut().add_callback(move |physics, _, run_state, _| {
let platform = physics.bodies.get_mut(platform_handle).unwrap();
let mut next_pos = *platform.position();