expose setShadowsEnabled method on View/FFIView

This commit is contained in:
Nick Fisher
2025-06-09 18:09:27 +08:00
parent ff559997dd
commit f3a576005a
2 changed files with 5 additions and 1 deletions

View File

@@ -242,4 +242,8 @@ class FFIView extends View {
tFogOptions.enabled = options.enabled;
View_setFogOptions(this.view, tFogOptions);
}
Future setShadowsEnabled(bool enabled) async {
View_setShadowsEnabled(this.view, enabled);
}
}

View File

@@ -76,7 +76,7 @@ abstract class View {
Future setBloom(bool enabled, double strength);
Future setBlendMode(BlendMode blendMode);
Future setRenderQuality(QualityLevel quality);
Future setShadowsEnabled(bool enabled);
Future setLayerVisibility(VisibilityLayers layer, bool visible);
/// Sets the fog options for this view.