mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
asmjs: Trying out async.
This commit is contained in:
parent
06d7f17aee
commit
f9e63f1d21
1 changed files with 7 additions and 0 deletions
|
@ -9,16 +9,23 @@
|
||||||
|
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
|
|
||||||
|
extern "C" void entry_emscripten_yield()
|
||||||
|
{
|
||||||
|
// emscripten_sleep(0);
|
||||||
|
}
|
||||||
|
|
||||||
namespace entry
|
namespace entry
|
||||||
{
|
{
|
||||||
const Event* poll()
|
const Event* poll()
|
||||||
{
|
{
|
||||||
|
entry_emscripten_yield();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Event* poll(WindowHandle _handle)
|
const Event* poll(WindowHandle _handle)
|
||||||
{
|
{
|
||||||
BX_UNUSED(_handle);
|
BX_UNUSED(_handle);
|
||||||
|
entry_emscripten_yield();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue