From 6d36dc792364d2d1cc95f1d1b7377c10b18f31e3 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 30 Nov 2024 13:59:10 +0800 Subject: [PATCH] add dithering to view --- thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart index d737ef15..59f46943 100644 --- a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart +++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart @@ -81,4 +81,12 @@ class FFIView extends View { Future isStencilBufferEnabled() async { return View_isStencilBufferEnabled(view); } + + Future setDithering(bool enabled) async { + View_setDitheringEnabled(view, enabled); + } + + Future isDitheringEnabled() async { + return View_isDitheringEnabled(view); + } }