internal: expose View_getRenderTarget and set (Dart) FFIView.renderTarget property on construction

This commit is contained in:
Nick Fisher
2024-12-18 08:42:53 +08:00
parent dc690bb93a
commit b158062ce8
3 changed files with 20 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ EMSCRIPTEN_KEEPALIVE void View_setRenderTarget(TView *view, TRenderTarget *rende
EMSCRIPTEN_KEEPALIVE void View_setFrustumCullingEnabled(TView *view, bool enabled);
EMSCRIPTEN_KEEPALIVE void View_updateViewport(TView* tView, uint32_t width, uint32_t height);
EMSCRIPTEN_KEEPALIVE void View_setRenderTarget(TView* tView, TRenderTarget* tRenderTarget);
EMSCRIPTEN_KEEPALIVE TRenderTarget *View_getRenderTarget(TView* tView);
EMSCRIPTEN_KEEPALIVE void View_setFrustumCullingEnabled(TView* tView, bool enabled);
EMSCRIPTEN_KEEPALIVE void View_setPostProcessing(TView* tView, bool enabled);
EMSCRIPTEN_KEEPALIVE void View_setShadowsEnabled(TView* tView, bool enabled);