rename requestAnimationFrame to requestFrame

This commit is contained in:
Nick Fisher committed 2025-04-17 13:34:18 +08:00
1 parent 2b6693a826
commit 1be1979c05
3 files changed
+4 -3

No files matched your search

@@ -16,7 +16,7 @@ namespace thermion
EMSCRIPTEN_KEEPALIVE void RenderThread_create();
EMSCRIPTEN_KEEPALIVE void RenderThread_destroy();
EMSCRIPTEN_KEEPALIVE void RenderThread_requestAnimationFrame(void (*onComplete)());
EMSCRIPTEN_KEEPALIVE void RenderThread_requestFrame(void (*onComplete)());
EMSCRIPTEN_KEEPALIVE void RenderThread_setRenderTicker(TRenderTicker *tRenderTicker);
EMSCRIPTEN_KEEPALIVE void RenderThread_addTask(void (*task)());
@@ -63,7 +63,7 @@ extern "C"
_renderThread->setRenderTicker(renderTicker);
}
EMSCRIPTEN_KEEPALIVE void RenderThread_requestAnimationFrame(void (*onComplete)()) {
EMSCRIPTEN_KEEPALIVE void RenderThread_requestFrame(void (*onComplete)()) {
_renderThread->requestFrame(onComplete);
}