mach: App.update will now return !void instead of !bool
In order to close the application, there is already Engine.setShouldClose() which would roughly do the same thing.
This commit is contained in:
parent
3234b6c0dd
commit
40c0659cc9
4 changed files with 6 additions and 9 deletions
|
|
@ -25,9 +25,8 @@
|
|||
instance.exports.wasmInit();
|
||||
|
||||
let update = function() {{
|
||||
const r = instance.exports.wasmUpdate();
|
||||
if (r) requestAnimationFrame(update)
|
||||
else instance.exports.wasmDeinit();
|
||||
instance.exports.wasmUpdate();
|
||||
requestAnimationFrame(update);
|
||||
}};
|
||||
|
||||
requestAnimationFrame(update);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue