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

@@ -44,7 +44,7 @@ pub fn init_world(testbed: &mut Testbed) {
let mut step = 0;
let snapped_frame = 51;
testbed.add_callback(move |_, physics, _, _, _| {
testbed.harness_mut().add_callback(move |physics, _, _, _| {
step += 1;
// Snap the ball velocity or restore it.