expose setBlendMode on View
This commit is contained in:
@@ -2,6 +2,10 @@ import 'package:thermion_dart/src/filament/src/layers.dart';
|
|||||||
import 'package:thermion_dart/src/filament/src/scene.dart';
|
import 'package:thermion_dart/src/filament/src/scene.dart';
|
||||||
import 'package:thermion_dart/thermion_dart.dart';
|
import 'package:thermion_dart/thermion_dart.dart';
|
||||||
|
|
||||||
|
enum BlendMode {
|
||||||
|
opaque,
|
||||||
|
transparent
|
||||||
|
}
|
||||||
///
|
///
|
||||||
/// The viewport currently attached to a [View].
|
/// The viewport currently attached to a [View].
|
||||||
///
|
///
|
||||||
@@ -37,6 +41,7 @@ abstract class View {
|
|||||||
Future setDithering(bool enabled);
|
Future setDithering(bool enabled);
|
||||||
Future<bool> isDitheringEnabled();
|
Future<bool> isDitheringEnabled();
|
||||||
Future setBloom(bool enabled, double strength);
|
Future setBloom(bool enabled, double strength);
|
||||||
|
Future setBlendMode(BlendMode blendMode);
|
||||||
Future setRenderQuality(QualityLevel quality);
|
Future setRenderQuality(QualityLevel quality);
|
||||||
Future setLayerVisibility(VisibilityLayers layer, bool visible);
|
Future setLayerVisibility(VisibilityLayers layer, bool visible);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,8 +152,8 @@ class FFIView extends View {
|
|||||||
View_setLayerEnabled(view, layer.value, visible);
|
View_setLayerEnabled(view, layer.value, visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future setBlendMode(TBlendMode blendMode) async {
|
Future setBlendMode(BlendMode blendMode) async {
|
||||||
View_setBlendMode(view, blendMode);
|
View_setBlendMode(view, TBlendMode.values[blendMode.index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user