From bf3d4f7c0e76f3311ade17152ba2a1834ed1e586 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 30 Nov 2024 13:59:43 +0800 Subject: [PATCH] add dithering to view --- thermion_dart/native/include/c_api/TView.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thermion_dart/native/include/c_api/TView.h b/thermion_dart/native/include/c_api/TView.h index c387b14a..1f574568 100644 --- a/thermion_dart/native/include/c_api/TView.h +++ b/thermion_dart/native/include/c_api/TView.h @@ -45,6 +45,9 @@ EMSCRIPTEN_KEEPALIVE TScene* View_getScene(TView *tView); EMSCRIPTEN_KEEPALIVE TCamera* View_getCamera(TView *tView); EMSCRIPTEN_KEEPALIVE void View_setStencilBufferEnabled(TView *tView, bool enabled); EMSCRIPTEN_KEEPALIVE bool View_isStencilBufferEnabled(TView *tView); +EMSCRIPTEN_KEEPALIVE void View_setDitheringEnabled(TView *tView, bool enabled); +EMSCRIPTEN_KEEPALIVE bool View_isDitheringEnabled(TView *tView); + typedef void (*PickCallback)(uint32_t requestId, EntityId entityId, float depth, float fragX, float fragY, float fragZ); EMSCRIPTEN_KEEPALIVE void View_pick(TView* tView, uint32_t requestId, uint32_t x, uint32_t y, PickCallback callback);