mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-03 20:27:58 +03:00
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
mergeInto(LibraryManager.library, {
|
|
wait_vsync: function() {
|
|
Asyncify.handleSleep(function(wakeUp) {
|
|
window.requestAnimationFrame(function() {
|
|
wakeUp();
|
|
});
|
|
});
|
|
},
|
|
load_mincho_font: function() {
|
|
return Asyncify.handleSleep(function(wakeUp) {
|
|
xsystem35.load_mincho_font().then(wakeUp);
|
|
});
|
|
},
|
|
});
|