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

@@ -65,7 +65,7 @@ pub fn init_world(testbed: &mut Testbed) {
* Setup a callback to control the platform.
*/
let mut count = 0;
testbed.add_callback(move |_, physics, _, _, run_state| {
testbed.harness_mut().add_callback(move |physics, _, run_state, _| {
count += 1;
if count % 100 > 50 {
return;