diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart index 6b5b9ac4..18bfd942 100644 --- a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart +++ b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart @@ -643,11 +643,21 @@ external int get_bone( @ffi.Native< ffi.Bool Function(ffi.Pointer, EntityId, - ffi.Pointer)>(isLeaf: true) -external bool set_transform( + ffi.Pointer)>(isLeaf: true) +external bool SceneManager_setTransform( ffi.Pointer sceneManager, int entityId, - ffi.Pointer transform, + ffi.Pointer transform, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int)>(isLeaf: true) +external void SceneManager_queueTransformUpdates( + ffi.Pointer sceneManager, + ffi.Pointer entities, + ffi.Pointer transforms, + int numEntities, ); @ffi.Native, EntityId)>( @@ -715,18 +725,6 @@ external void transform_to_unit_cube( int asset, ); -@ffi.Native< - ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, - ffi.Float, ffi.Float, ffi.Bool)>(isLeaf: true) -external void queue_position_update( - ffi.Pointer sceneManager, - int entity, - double x, - double y, - double z, - bool relative, -); - @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>(isLeaf: true) @@ -750,20 +748,6 @@ external void queue_position_update_from_viewport_coords( double viewportY, ); -@ffi.Native< - ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, - ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>(isLeaf: true) -external void queue_rotation_update( - ffi.Pointer sceneManager, - int entity, - double rads, - double x, - double y, - double z, - double w, - bool relative, -); - @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, ffi.Float, ffi.Float)>(isLeaf: true) @@ -1461,6 +1445,16 @@ external void MaterialInstance_setDepthCulling( bool enabled, ); +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Double)>(isLeaf: true) +external void MaterialInstance_setParameterFloat2( + ffi.Pointer materialInstance, + ffi.Pointer name, + double x, + double y, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -1557,9 +1551,12 @@ external void set_rendering_render_thread( ffi.Pointer> onComplete, ); -@ffi.Native)>(isLeaf: true) +@ffi.Native< + ffi.Void Function(ffi.Pointer, + ffi.Pointer>)>(isLeaf: true) external void request_frame_render_thread( ffi.Pointer viewer, + ffi.Pointer> onComplete, ); @ffi.Native, ffi.Float)>(isLeaf: true) @@ -1625,78 +1622,11 @@ external void load_skybox_render_thread( ffi.Pointer> onComplete, ); -@ffi.Native< - ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Float)>(isLeaf: true) -external void load_ibl_render_thread( - ffi.Pointer viewer, - ffi.Pointer iblPath, - double intensity, -); - @ffi.Native)>(isLeaf: true) external void remove_skybox_render_thread( ffi.Pointer viewer, ); -@ffi.Native)>(isLeaf: true) -external void remove_ibl_render_thread( - ffi.Pointer viewer, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Uint8, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Bool, - ffi.Pointer>)>( - isLeaf: true) -external void add_light_render_thread( - ffi.Pointer viewer, - int type, - double colour, - double intensity, - double posX, - double posY, - double posZ, - double dirX, - double dirY, - double dirZ, - double falloffRadius, - double spotLightConeInner, - double spotLightConeOuter, - double sunAngularRadius, - double sunHaloSize, - double sunHaloFallof, - bool shadows, - ffi.Pointer> callback, -); - -@ffi.Native, EntityId)>(isLeaf: true) -external void remove_light_render_thread( - ffi.Pointer viewer, - int entityId, -); - -@ffi.Native)>(isLeaf: true) -external void clear_lights_render_thread( - ffi.Pointer viewer, -); - @ffi.Native< ffi.Void Function( ffi.Pointer,