From c93cc296a0b31cecffde502f8b3b544db76fcdc6 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 5 Sep 2024 17:53:24 +0800 Subject: [PATCH] chore: update binding --- .../compatibility/native/thermion_dart.g.dart | 49 +++++++++++++------ 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/thermion_dart/lib/thermion_dart/compatibility/native/thermion_dart.g.dart b/thermion_dart/lib/thermion_dart/compatibility/native/thermion_dart.g.dart index 89a692a9..6870b0d7 100644 --- a/thermion_dart/lib/thermion_dart/compatibility/native/thermion_dart.g.dart +++ b/thermion_dart/lib/thermion_dart/compatibility/native/thermion_dart.g.dart @@ -106,6 +106,17 @@ external void load_ibl( double intensity, ); +@ffi.Native< + ffi.Void Function( + ffi.Pointer, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>() +external void create_ibl( + ffi.Pointer viewer, + double r, + double g, + double b, + double intensity, +); + @ffi.Native, ffi.Pointer)>() external void rotate_ibl( ffi.Pointer viewer, @@ -1054,6 +1065,30 @@ external void set_layer_enabled( bool enabled, ); +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(EntityId entityId, ffi.Int x, ffi.Int y)>>)>() +external void pick_gizmo( + ffi.Pointer sceneManager, + int x, + int y, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(EntityId entityId, ffi.Int x, ffi.Int y)>> + callback, +); + +@ffi.Native, ffi.Bool)>() +external void set_gizmo_visibility( + ffi.Pointer sceneManager, + bool visible, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -1577,20 +1612,6 @@ final class Aabb2 extends ffi.Struct { external double maxY; } -final class int32_t_4 extends ffi.Struct { - @ffi.Int32() - external int i0; - - @ffi.Int32() - external int i1; - - @ffi.Int32() - external int i2; - - @ffi.Int32() - external int i3; -} - /// This header replicates most of the methods in ThermionDartApi.h. /// It represents the interface for: /// - invoking those methods that must be called on the main Filament engine thread