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 b12b7d42..89a692a9 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 @@ -620,6 +620,19 @@ external void queue_position_update( bool relative, ); +@ffi.Native< + ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, ffi.Float, + ffi.Float, ffi.Float, ffi.Float)>() +external void queue_relative_position_update_world_axis( + ffi.Pointer sceneManager, + int entity, + double viewportX, + double viewportY, + double x, + double y, + double z, +); + @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>() @@ -763,11 +776,17 @@ external ffi.Pointer get_camera_frustum( ffi.Pointer viewer, ); -@ffi.Native, ffi.Float, ffi.Float)>() +@ffi.Native, ffi.Bool)>() +external double get_camera_fov( + ffi.Pointer viewer, + bool horizontal, +); + +@ffi.Native, ffi.Float, ffi.Bool)>() external void set_camera_fov( ffi.Pointer viewer, double fovInDegrees, - double aspect, + bool horizontal, ); @ffi.Native, ffi.Float)>() @@ -1011,6 +1030,30 @@ external Aabb2 get_bounding_box( int entity, ); +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + EntityId, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>() +external void get_bounding_box_to_out( + ffi.Pointer sceneManager, + int entity, + ffi.Pointer minX, + ffi.Pointer minY, + ffi.Pointer maxX, + ffi.Pointer maxY, +); + +@ffi.Native, ffi.Int, ffi.Bool)>() +external void set_layer_enabled( + ffi.Pointer sceneManager, + int layer, + bool enabled, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -1534,6 +1577,20 @@ 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