// AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. // ignore_for_file: type=lint import 'dart:ffi' as ffi; @ffi.Native< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( symbol: 'create_filament_viewer', assetId: 'flutter_filament_plugin') external ffi.Pointer create_filament_viewer( ffi.Pointer context, ffi.Pointer loader, ffi.Pointer platform, ffi.Pointer uberArchivePath, ); @ffi.Native)>( symbol: 'destroy_filament_viewer', assetId: 'flutter_filament_plugin') external void destroy_filament_viewer( ffi.Pointer viewer, ); @ffi.Native< ffi.Pointer Function( LoadFilamentResourceFromOwner, FreeFilamentResourceFromOwner, ffi.Pointer)>( symbol: 'make_resource_loader', assetId: 'flutter_filament_plugin') external ffi.Pointer make_resource_loader( LoadFilamentResourceFromOwner loadFn, FreeFilamentResourceFromOwner freeFn, ffi.Pointer owner, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_scene_manager', assetId: 'flutter_filament_plugin') external ffi.Pointer get_scene_manager( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.IntPtr, ffi.Uint32, ffi.Uint32)>( symbol: 'create_render_target', assetId: 'flutter_filament_plugin') external void create_render_target( ffi.Pointer viewer, int texture, int width, int height, ); @ffi.Native)>( symbol: 'clear_background_image', assetId: 'flutter_filament_plugin') external void clear_background_image( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Bool)>( symbol: 'set_background_image', assetId: 'flutter_filament_plugin') external void set_background_image( ffi.Pointer viewer, ffi.Pointer path, bool fillHeight, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Bool)>( symbol: 'set_background_image_position', assetId: 'flutter_filament_plugin') external void set_background_image_position( ffi.Pointer viewer, double x, double y, bool clamp, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_background_color', assetId: 'flutter_filament_plugin') external void set_background_color( ffi.Pointer viewer, double r, double g, double b, double a, ); @ffi.Native, ffi.Int)>( symbol: 'set_tone_mapping', assetId: 'flutter_filament_plugin') external void set_tone_mapping( ffi.Pointer viewer, int toneMapping, ); @ffi.Native, ffi.Float)>( symbol: 'set_bloom', assetId: 'flutter_filament_plugin') external void set_bloom( ffi.Pointer viewer, double strength, ); @ffi.Native, ffi.Pointer)>( symbol: 'load_skybox', assetId: 'flutter_filament_plugin') external void load_skybox( ffi.Pointer viewer, ffi.Pointer skyboxPath, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>(symbol: 'load_ibl', assetId: 'flutter_filament_plugin') external void load_ibl( ffi.Pointer viewer, ffi.Pointer iblPath, double intensity, ); @ffi.Native, ffi.Pointer)>( symbol: 'rotate_ibl', assetId: 'flutter_filament_plugin') external void rotate_ibl( ffi.Pointer viewer, ffi.Pointer rotationMatrix, ); @ffi.Native)>( symbol: 'remove_skybox', assetId: 'flutter_filament_plugin') external void remove_skybox( ffi.Pointer viewer, ); @ffi.Native)>( symbol: 'remove_ibl', assetId: 'flutter_filament_plugin') external void remove_ibl( ffi.Pointer viewer, ); @ffi.Native< EntityId Function( ffi.Pointer, ffi.Uint8, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>(symbol: 'add_light', assetId: 'flutter_filament_plugin') external int add_light( ffi.Pointer viewer, int type, double colour, double intensity, double posX, double posY, double posZ, double dirX, double dirY, double dirZ, bool shadows, ); @ffi.Native, EntityId)>( symbol: 'remove_light', assetId: 'flutter_filament_plugin') external void remove_light( ffi.Pointer viewer, int entityId, ); @ffi.Native)>( symbol: 'clear_lights', assetId: 'flutter_filament_plugin') external void clear_lights( ffi.Pointer viewer, ); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>(symbol: 'load_glb', assetId: 'flutter_filament_plugin') external int load_glb( ffi.Pointer sceneManager, ffi.Pointer assetPath, bool unlit, ); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>( symbol: 'load_gltf', assetId: 'flutter_filament_plugin') external int load_gltf( ffi.Pointer sceneManager, ffi.Pointer assetPath, ffi.Pointer relativePath, ); @ffi.Native)>( symbol: 'set_main_camera', assetId: 'flutter_filament_plugin') external void set_main_camera( ffi.Pointer viewer, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'set_camera', assetId: 'flutter_filament_plugin') external bool set_camera( ffi.Pointer viewer, int asset, ffi.Pointer nodeName, ); @ffi.Native, ffi.Bool)>( symbol: 'set_view_frustum_culling', assetId: 'flutter_filament_plugin') external void set_view_frustum_culling( ffi.Pointer viewer, bool enabled, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Uint64, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer buf, ffi.Size size, ffi.Pointer data)>>, ffi.Pointer)>( symbol: 'render', assetId: 'flutter_filament_plugin') external void render( ffi.Pointer viewer, int frameTimeInNanos, ffi.Pointer pixelBuffer, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer buf, ffi.Size size, ffi.Pointer data)>> callback, ffi.Pointer data, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Uint32, ffi.Uint32)>( symbol: 'create_swap_chain', assetId: 'flutter_filament_plugin') external void create_swap_chain( ffi.Pointer viewer, ffi.Pointer window, int width, int height, ); @ffi.Native)>( symbol: 'destroy_swap_chain', assetId: 'flutter_filament_plugin') external void destroy_swap_chain( ffi.Pointer viewer, ); @ffi.Native, ffi.Float)>( symbol: 'set_frame_interval', assetId: 'flutter_filament_plugin') external void set_frame_interval( ffi.Pointer viewer, double interval, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Uint32, ffi.Uint32, ffi.Float)>( symbol: 'update_viewport_and_camera_projection', assetId: 'flutter_filament_plugin') external void update_viewport_and_camera_projection( ffi.Pointer viewer, int width, int height, double scaleFactor, ); @ffi.Native)>( symbol: 'scroll_begin', assetId: 'flutter_filament_plugin') external void scroll_begin( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Float, ffi.Float, ffi.Float)>(symbol: 'scroll_update', assetId: 'flutter_filament_plugin') external void scroll_update( ffi.Pointer viewer, double x, double y, double z, ); @ffi.Native)>( symbol: 'scroll_end', assetId: 'flutter_filament_plugin') external void scroll_end( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Float, ffi.Float, ffi.Bool)>(symbol: 'grab_begin', assetId: 'flutter_filament_plugin') external void grab_begin( ffi.Pointer viewer, double x, double y, bool pan, ); @ffi.Native, ffi.Float, ffi.Float)>( symbol: 'grab_update', assetId: 'flutter_filament_plugin') external void grab_update( ffi.Pointer viewer, double x, double y, ); @ffi.Native)>( symbol: 'grab_end', assetId: 'flutter_filament_plugin') external void grab_end( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>(symbol: 'apply_weights', assetId: 'flutter_filament_plugin') external void apply_weights( ffi.Pointer sceneManager, int asset, ffi.Pointer entityName, ffi.Pointer weights, int count, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>( symbol: 'set_morph_target_weights', assetId: 'flutter_filament_plugin') external void set_morph_target_weights( ffi.Pointer sceneManager, int asset, ffi.Pointer entityName, ffi.Pointer morphData, int numWeights, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, ffi.Float)>( symbol: 'set_morph_animation', assetId: 'flutter_filament_plugin') external bool set_morph_animation( ffi.Pointer sceneManager, int asset, ffi.Pointer entityName, ffi.Pointer morphData, ffi.Pointer morphIndices, int numMorphTargets, int numFrames, double frameLengthInMs, ); @ffi.Native, EntityId)>( symbol: 'reset_to_rest_pose', assetId: 'flutter_filament_plugin') external void reset_to_rest_pose( ffi.Pointer sceneManager, int asset, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Int, ffi.Pointer, ffi.Pointer>, ffi.Int, ffi.Float, ffi.Bool)>( symbol: 'add_bone_animation', assetId: 'flutter_filament_plugin') external void add_bone_animation( ffi.Pointer sceneManager, int asset, ffi.Pointer frameData, int numFrames, ffi.Pointer boneName, ffi.Pointer> meshNames, int numMeshTargets, double frameLengthInMs, bool isModelSpace, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( symbol: 'set_bone_transform', assetId: 'flutter_filament_plugin') external bool set_bone_transform( ffi.Pointer sceneManager, int asset, ffi.Pointer entityName, ffi.Pointer transform, ffi.Pointer boneName, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Int, ffi.Bool, ffi.Bool, ffi.Bool, ffi.Float)>( symbol: 'play_animation', assetId: 'flutter_filament_plugin') external void play_animation( ffi.Pointer sceneManager, int asset, int index, bool loop, bool reverse, bool replaceActive, double crossfade, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Int, ffi.Int)>( symbol: 'set_animation_frame', assetId: 'flutter_filament_plugin') external void set_animation_frame( ffi.Pointer sceneManager, int asset, int animationIndex, int animationFrame, ); @ffi.Native, EntityId, ffi.Int)>( symbol: 'stop_animation', assetId: 'flutter_filament_plugin') external void stop_animation( ffi.Pointer sceneManager, int asset, int index, ); @ffi.Native, EntityId)>( symbol: 'get_animation_count', assetId: 'flutter_filament_plugin') external int get_animation_count( ffi.Pointer sceneManager, int asset, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Int)>( symbol: 'get_animation_name', assetId: 'flutter_filament_plugin') external void get_animation_name( ffi.Pointer sceneManager, int asset, ffi.Pointer outPtr, int index, ); @ffi.Native, EntityId, ffi.Int)>( symbol: 'get_animation_duration', assetId: 'flutter_filament_plugin') external double get_animation_duration( ffi.Pointer sceneManager, int asset, int index, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>( symbol: 'get_morph_target_name', assetId: 'flutter_filament_plugin') external void get_morph_target_name( ffi.Pointer sceneManager, int asset, ffi.Pointer meshName, ffi.Pointer outPtr, int index, ); @ffi.Native< ffi.Int Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'get_morph_target_name_count', assetId: 'flutter_filament_plugin') external int get_morph_target_name_count( ffi.Pointer sceneManager, int asset, ffi.Pointer meshName, ); @ffi.Native, EntityId)>( symbol: 'remove_entity', assetId: 'flutter_filament_plugin') external void remove_entity( ffi.Pointer viewer, int asset, ); @ffi.Native)>( symbol: 'clear_entities', assetId: 'flutter_filament_plugin') external void clear_entities( ffi.Pointer viewer, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Int, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_material_color', assetId: 'flutter_filament_plugin') external bool set_material_color( ffi.Pointer sceneManager, int asset, ffi.Pointer meshName, int materialIndex, double r, double g, double b, double a, ); @ffi.Native, EntityId)>( symbol: 'transform_to_unit_cube', assetId: 'flutter_filament_plugin') external void transform_to_unit_cube( ffi.Pointer sceneManager, int asset, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>( symbol: 'queue_position_update', assetId: 'flutter_filament_plugin') external void queue_position_update( ffi.Pointer sceneManager, int asset, 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, ffi.Bool)>( symbol: 'queue_rotation_update', assetId: 'flutter_filament_plugin') external void queue_rotation_update( ffi.Pointer sceneManager, int asset, 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)>(symbol: 'set_position', assetId: 'flutter_filament_plugin') external void set_position( ffi.Pointer sceneManager, int asset, double x, double y, double z, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>(symbol: 'set_rotation', assetId: 'flutter_filament_plugin') external void set_rotation( ffi.Pointer sceneManager, int asset, double rads, double x, double y, double z, double w, ); @ffi.Native, EntityId, ffi.Float)>( symbol: 'set_scale', assetId: 'flutter_filament_plugin') external void set_scale( ffi.Pointer sceneManager, int asset, double scale, ); @ffi.Native, EntityId)>( symbol: 'move_camera_to_asset', assetId: 'flutter_filament_plugin') external void move_camera_to_asset( ffi.Pointer viewer, int asset, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_camera_exposure', assetId: 'flutter_filament_plugin') external void set_camera_exposure( ffi.Pointer viewer, double aperture, double shutterSpeed, double sensitivity, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_camera_position', assetId: 'flutter_filament_plugin') external void set_camera_position( ffi.Pointer viewer, double x, double y, double z, ); @ffi.Native)>( symbol: 'get_camera_position', assetId: 'flutter_filament_plugin') external void get_camera_position( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_camera_rotation', assetId: 'flutter_filament_plugin') external void set_camera_rotation( ffi.Pointer viewer, double rads, double x, double y, double z, ); @ffi.Native, ffi.Pointer)>( symbol: 'set_camera_model_matrix', assetId: 'flutter_filament_plugin') external void set_camera_model_matrix( ffi.Pointer viewer, ffi.Pointer matrix, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_camera_model_matrix', assetId: 'flutter_filament_plugin') external ffi.Pointer get_camera_model_matrix( ffi.Pointer viewer, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_camera_view_matrix', assetId: 'flutter_filament_plugin') external ffi.Pointer get_camera_view_matrix( ffi.Pointer viewer, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_camera_projection_matrix', assetId: 'flutter_filament_plugin') external ffi.Pointer get_camera_projection_matrix( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Double)>( symbol: 'set_camera_projection_matrix', assetId: 'flutter_filament_plugin') external void set_camera_projection_matrix( ffi.Pointer viewer, ffi.Pointer matrix, double near, double far, ); @ffi.Native, ffi.Double, ffi.Double)>( symbol: 'set_camera_culling', assetId: 'flutter_filament_plugin') external void set_camera_culling( ffi.Pointer viewer, double near, double far, ); @ffi.Native)>( symbol: 'get_camera_culling_near', assetId: 'flutter_filament_plugin') external double get_camera_culling_near( ffi.Pointer viewer, ); @ffi.Native)>( symbol: 'get_camera_culling_far', assetId: 'flutter_filament_plugin') external double get_camera_culling_far( ffi.Pointer viewer, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_camera_culling_projection_matrix', assetId: 'flutter_filament_plugin') external ffi.Pointer get_camera_culling_projection_matrix( ffi.Pointer viewer, ); @ffi.Native Function(ffi.Pointer)>( symbol: 'get_camera_frustum', assetId: 'flutter_filament_plugin') external ffi.Pointer get_camera_frustum( ffi.Pointer viewer, ); @ffi.Native, ffi.Float, ffi.Float)>( symbol: 'set_camera_fov', assetId: 'flutter_filament_plugin') external void set_camera_fov( ffi.Pointer viewer, double fovInDegrees, double aspect, ); @ffi.Native, ffi.Float)>( symbol: 'set_camera_focal_length', assetId: 'flutter_filament_plugin') external void set_camera_focal_length( ffi.Pointer viewer, double focalLength, ); @ffi.Native, ffi.Float)>( symbol: 'set_camera_focus_distance', assetId: 'flutter_filament_plugin') external void set_camera_focus_distance( ffi.Pointer viewer, double focusDistance, ); @ffi.Native< ffi.Void Function(ffi.Pointer, _ManipulatorMode, ffi.Double, ffi.Double, ffi.Double)>( symbol: 'set_camera_manipulator_options', assetId: 'flutter_filament_plugin') external void set_camera_manipulator_options( ffi.Pointer viewer, int mode, double orbitSpeedX, double orbitSpeedY, double zoomSpeed, ); @ffi.Native< ffi.Int Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'hide_mesh', assetId: 'flutter_filament_plugin') external int hide_mesh( ffi.Pointer sceneManager, int asset, ffi.Pointer meshName, ); @ffi.Native< ffi.Int Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'reveal_mesh', assetId: 'flutter_filament_plugin') external int reveal_mesh( ffi.Pointer sceneManager, int asset, ffi.Pointer meshName, ); @ffi.Native, ffi.Bool)>( symbol: 'set_post_processing', assetId: 'flutter_filament_plugin') external void set_post_processing( ffi.Pointer viewer, bool enabled, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Bool, ffi.Bool, ffi.Bool)>( symbol: 'set_antialiasing', assetId: 'flutter_filament_plugin') external void set_antialiasing( ffi.Pointer viewer, bool msaa, bool fxaa, bool taa, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>( symbol: 'pick', assetId: 'flutter_filament_plugin') external void pick( ffi.Pointer viewer, int x, int y, ffi.Pointer entityId, ); @ffi.Native Function(ffi.Pointer, EntityId)>( symbol: 'get_name_for_entity', assetId: 'flutter_filament_plugin') external ffi.Pointer get_name_for_entity( ffi.Pointer sceneManager, int entityId, ); @ffi.Native< EntityId Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'find_child_entity_by_name', assetId: 'flutter_filament_plugin') external int find_child_entity_by_name( ffi.Pointer sceneManager, int parent, ffi.Pointer name, ); @ffi.Native, EntityId, ffi.Bool)>( symbol: 'get_entity_count', assetId: 'flutter_filament_plugin') external int get_entity_count( ffi.Pointer sceneManager, int target, bool renderableOnly, ); @ffi.Native< ffi.Pointer Function( ffi.Pointer, EntityId, ffi.Int, ffi.Bool)>( symbol: 'get_entity_name_at', assetId: 'flutter_filament_plugin') external ffi.Pointer get_entity_name_at( ffi.Pointer sceneManager, int target, int index, bool renderableOnly, ); @ffi.Native, ffi.Bool)>( symbol: 'set_recording', assetId: 'flutter_filament_plugin') external void set_recording( ffi.Pointer viewer, bool recording, ); @ffi.Native, ffi.Pointer)>( symbol: 'set_recording_output_directory', assetId: 'flutter_filament_plugin') external void set_recording_output_directory( ffi.Pointer viewer, ffi.Pointer outputDirectory, ); @ffi.Native( symbol: 'ios_dummy', assetId: 'flutter_filament_plugin') external void ios_dummy(); @ffi.Native)>( symbol: 'flutter_filament_free', assetId: 'flutter_filament_plugin') external void flutter_filament_free( ffi.Pointer ptr, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(EntityId entityId1, EntityId entityId2)>>, ffi.Bool)>( symbol: 'add_collision_component', assetId: 'flutter_filament_plugin') external void add_collision_component( ffi.Pointer sceneManager, int entityId, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(EntityId entityId1, EntityId entityId2)>> callback, bool affectsCollidingTransform, ); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Pointer, ffi.Int, ffi.Pointer)>( symbol: 'create_geometry', assetId: 'flutter_filament_plugin') external int create_geometry( ffi.Pointer viewer, ffi.Pointer vertices, int numVertices, ffi.Pointer indices, int numIndices, ffi.Pointer materialPath, ); @ffi.Native, EntityId, EntityId)>( symbol: 'set_parent', assetId: 'flutter_filament_plugin') external void set_parent( ffi.Pointer sceneManager, int child, int parent, ); @ffi.Native, EntityId)>( symbol: 'test_collisions', assetId: 'flutter_filament_plugin') external void test_collisions( ffi.Pointer sceneManager, int entity, ); @ffi.Native< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi .Pointer< ffi.NativeFunction< ffi.Void Function( ffi.Pointer renderCallbackOwner)>>, ffi.Pointer)>( symbol: 'create_filament_viewer_ffi', assetId: 'flutter_filament_plugin') external ffi.Pointer create_filament_viewer_ffi( ffi.Pointer context, ffi.Pointer platform, ffi.Pointer uberArchivePath, ffi.Pointer loader, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer renderCallbackOwner)>> renderCallback, ffi.Pointer renderCallbackOwner, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Uint32, ffi.Uint32)>( symbol: 'create_swap_chain_ffi', assetId: 'flutter_filament_plugin') external void create_swap_chain_ffi( ffi.Pointer viewer, ffi.Pointer surface, int width, int height, ); @ffi.Native)>( symbol: 'destroy_swap_chain_ffi', assetId: 'flutter_filament_plugin') external void destroy_swap_chain_ffi( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.IntPtr, ffi.Uint32, ffi.Uint32)>( symbol: 'create_render_target_ffi', assetId: 'flutter_filament_plugin') external void create_render_target_ffi( ffi.Pointer viewer, int nativeTextureId, int width, int height, ); @ffi.Native)>( symbol: 'destroy_filament_viewer_ffi', assetId: 'flutter_filament_plugin') external void destroy_filament_viewer_ffi( ffi.Pointer viewer, ); @ffi.Native)>( symbol: 'render_ffi', assetId: 'flutter_filament_plugin') external void render_ffi( ffi.Pointer viewer, ); @ffi.Native( symbol: 'make_render_callback_fn_pointer', assetId: 'flutter_filament_plugin') external FilamentRenderCallback make_render_callback_fn_pointer( FilamentRenderCallback arg0, ); @ffi.Native, ffi.Bool)>( symbol: 'set_rendering_ffi', assetId: 'flutter_filament_plugin') external void set_rendering_ffi( ffi.Pointer viewer, bool rendering, ); @ffi.Native( symbol: 'set_frame_interval_ffi', assetId: 'flutter_filament_plugin') external void set_frame_interval_ffi( double frameInterval, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Uint32, ffi.Uint32, ffi.Float)>( symbol: 'update_viewport_and_camera_projection_ffi', assetId: 'flutter_filament_plugin') external void update_viewport_and_camera_projection_ffi( ffi.Pointer viewer, int width, int height, double scaleFactor, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>( symbol: 'set_background_color_ffi', assetId: 'flutter_filament_plugin') external void set_background_color_ffi( ffi.Pointer viewer, double r, double g, double b, double a, ); @ffi.Native)>( symbol: 'clear_background_image_ffi', assetId: 'flutter_filament_plugin') external void clear_background_image_ffi( ffi.Pointer viewer, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Bool)>( symbol: 'set_background_image_ffi', assetId: 'flutter_filament_plugin') external void set_background_image_ffi( ffi.Pointer viewer, ffi.Pointer path, bool fillHeight, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Float, ffi.Float, ffi.Bool)>( symbol: 'set_background_image_position_ffi', assetId: 'flutter_filament_plugin') external void set_background_image_position_ffi( ffi.Pointer viewer, double x, double y, bool clamp, ); @ffi.Native, ffi.Int)>( symbol: 'set_tone_mapping_ffi', assetId: 'flutter_filament_plugin') external void set_tone_mapping_ffi( ffi.Pointer viewer, int toneMapping, ); @ffi.Native, ffi.Float)>( symbol: 'set_bloom_ffi', assetId: 'flutter_filament_plugin') external void set_bloom_ffi( ffi.Pointer viewer, double strength, ); @ffi.Native, ffi.Pointer)>( symbol: 'load_skybox_ffi', assetId: 'flutter_filament_plugin') external void load_skybox_ffi( ffi.Pointer viewer, ffi.Pointer skyboxPath, ); @ffi.Native< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>(symbol: 'load_ibl_ffi', assetId: 'flutter_filament_plugin') external void load_ibl_ffi( ffi.Pointer viewer, ffi.Pointer iblPath, double intensity, ); @ffi.Native)>( symbol: 'remove_skybox_ffi', assetId: 'flutter_filament_plugin') external void remove_skybox_ffi( ffi.Pointer viewer, ); @ffi.Native)>( symbol: 'remove_ibl_ffi', assetId: 'flutter_filament_plugin') external void remove_ibl_ffi( ffi.Pointer viewer, ); @ffi.Native< EntityId Function( ffi.Pointer, ffi.Uint8, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>(symbol: 'add_light_ffi', assetId: 'flutter_filament_plugin') external int add_light_ffi( ffi.Pointer viewer, int type, double colour, double intensity, double posX, double posY, double posZ, double dirX, double dirY, double dirZ, bool shadows, ); @ffi.Native, EntityId)>( symbol: 'remove_light_ffi', assetId: 'flutter_filament_plugin') external void remove_light_ffi( ffi.Pointer viewer, int entityId, ); @ffi.Native)>( symbol: 'clear_lights_ffi', assetId: 'flutter_filament_plugin') external void clear_lights_ffi( ffi.Pointer viewer, ); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>(symbol: 'load_glb_ffi', assetId: 'flutter_filament_plugin') external int load_glb_ffi( ffi.Pointer assetManager, ffi.Pointer assetPath, bool unlit, ); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>( symbol: 'load_gltf_ffi', assetId: 'flutter_filament_plugin') external int load_gltf_ffi( ffi.Pointer assetManager, ffi.Pointer assetPath, ffi.Pointer relativePath, ); @ffi.Native, EntityId)>( symbol: 'remove_entity_ffi', assetId: 'flutter_filament_plugin') external void remove_entity_ffi( ffi.Pointer viewer, int asset, ); @ffi.Native)>( symbol: 'clear_entities_ffi', assetId: 'flutter_filament_plugin') external void clear_entities_ffi( ffi.Pointer viewer, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'set_camera_ffi', assetId: 'flutter_filament_plugin') external bool set_camera_ffi( ffi.Pointer viewer, int asset, ffi.Pointer nodeName, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>( symbol: 'apply_weights_ffi', assetId: 'flutter_filament_plugin') external void apply_weights_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer entityName, ffi.Pointer weights, int count, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Int, ffi.Bool, ffi.Bool, ffi.Bool, ffi.Float)>( symbol: 'play_animation_ffi', assetId: 'flutter_filament_plugin') external void play_animation_ffi( ffi.Pointer assetManager, int asset, int index, bool loop, bool reverse, bool replaceActive, double crossfade, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Int, ffi.Int)>( symbol: 'set_animation_frame_ffi', assetId: 'flutter_filament_plugin') external void set_animation_frame_ffi( ffi.Pointer assetManager, int asset, int animationIndex, int animationFrame, ); @ffi.Native, EntityId, ffi.Int)>( symbol: 'stop_animation_ffi', assetId: 'flutter_filament_plugin') external void stop_animation_ffi( ffi.Pointer assetManager, int asset, int index, ); @ffi.Native, EntityId)>( symbol: 'get_animation_count_ffi', assetId: 'flutter_filament_plugin') external int get_animation_count_ffi( ffi.Pointer assetManager, int asset, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Int)>( symbol: 'get_animation_name_ffi', assetId: 'flutter_filament_plugin') external void get_animation_name_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer outPtr, int index, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>( symbol: 'get_morph_target_name_ffi', assetId: 'flutter_filament_plugin') external void get_morph_target_name_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer meshName, ffi.Pointer outPtr, int index, ); @ffi.Native< ffi.Int Function( ffi.Pointer, EntityId, ffi.Pointer)>( symbol: 'get_morph_target_name_count_ffi', assetId: 'flutter_filament_plugin') external int get_morph_target_name_count_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer meshName, ); @ffi.Native< ffi.Void Function(ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Int)>( symbol: 'set_morph_target_weights_ffi', assetId: 'flutter_filament_plugin') external void set_morph_target_weights_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer entityName, ffi.Pointer morphData, int numWeights, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, ffi.Float)>( symbol: 'set_morph_animation_ffi', assetId: 'flutter_filament_plugin') external bool set_morph_animation_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer entityName, ffi.Pointer morphData, ffi.Pointer morphIndices, int numMorphTargets, int numFrames, double frameLengthInMs, ); @ffi.Native< ffi.Bool Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( symbol: 'set_bone_transform_ffi', assetId: 'flutter_filament_plugin') external bool set_bone_transform_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer entityName, ffi.Pointer transform, ffi.Pointer boneName, ); @ffi.Native< ffi.Void Function( ffi.Pointer, EntityId, ffi.Pointer, ffi.Int, ffi.Pointer, ffi.Pointer>, ffi.Int, ffi.Float, ffi.Bool)>( symbol: 'add_bone_animation_ffi', assetId: 'flutter_filament_plugin') external void add_bone_animation_ffi( ffi.Pointer assetManager, int asset, ffi.Pointer frameData, int numFrames, ffi.Pointer boneName, ffi.Pointer> meshNames, int numMeshTargets, double frameLengthInMs, bool isModelSpace, ); @ffi.Native, ffi.Bool)>( symbol: 'set_post_processing_ffi', assetId: 'flutter_filament_plugin') external void set_post_processing_ffi( ffi.Pointer viewer, bool enabled, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>( symbol: 'pick_ffi', assetId: 'flutter_filament_plugin') external void pick_ffi( ffi.Pointer viewer, int x, int y, ffi.Pointer entityId, ); @ffi.Native, EntityId)>( symbol: 'reset_to_rest_pose_ffi', assetId: 'flutter_filament_plugin') external void reset_to_rest_pose_ffi( ffi.Pointer assetManager, int entityId, ); @ffi.Native( symbol: 'ios_dummy_ffi', assetId: 'flutter_filament_plugin') external void ios_dummy_ffi(); @ffi.Native< EntityId Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Pointer, ffi.Int, ffi.Pointer)>( symbol: 'create_geometry_ffi', assetId: 'flutter_filament_plugin') external int create_geometry_ffi( ffi.Pointer viewer, ffi.Pointer vertices, int numVertices, ffi.Pointer indices, int numIndices, ffi.Pointer materialPath, ); final class __mbstate_t extends ffi.Union { @ffi.Array.multi([128]) external ffi.Array __mbstate8; @ffi.LongLong() external int _mbstateL; } final class __darwin_pthread_handler_rec extends ffi.Struct { external ffi .Pointer)>> __routine; external ffi.Pointer __arg; external ffi.Pointer<__darwin_pthread_handler_rec> __next; } final class _opaque_pthread_attr_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([56]) external ffi.Array __opaque; } final class _opaque_pthread_cond_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([40]) external ffi.Array __opaque; } final class _opaque_pthread_condattr_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([8]) external ffi.Array __opaque; } final class _opaque_pthread_mutex_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([56]) external ffi.Array __opaque; } final class _opaque_pthread_mutexattr_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([8]) external ffi.Array __opaque; } final class _opaque_pthread_once_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([8]) external ffi.Array __opaque; } final class _opaque_pthread_rwlock_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([192]) external ffi.Array __opaque; } final class _opaque_pthread_rwlockattr_t extends ffi.Struct { @ffi.Long() external int __sig; @ffi.Array.multi([16]) external ffi.Array __opaque; } final class _opaque_pthread_t extends ffi.Struct { @ffi.Long() external int __sig; external ffi.Pointer<__darwin_pthread_handler_rec> __cleanup_stack; @ffi.Array.multi([8176]) external ffi.Array __opaque; } final class ResourceBuffer extends ffi.Struct { external ffi.Pointer data; @ffi.Int32() external int size; @ffi.Int32() external int id; } final class ResourceLoaderWrapper extends ffi.Struct { external LoadFilamentResource mLoadFilamentResource; external FreeFilamentResource mFreeFilamentResource; external LoadFilamentResourceFromOwner mLoadFilamentResourceFromOwner; external FreeFilamentResourceFromOwner mFreeFilamentResourceFromOwner; external ffi.Pointer mOwner; } typedef LoadFilamentResource = ffi.Pointer< ffi.NativeFunction uri)>>; typedef FreeFilamentResource = ffi.Pointer>; typedef LoadFilamentResourceFromOwner = ffi.Pointer< ffi.NativeFunction< ResourceBuffer Function(ffi.Pointer, ffi.Pointer)>>; typedef FreeFilamentResourceFromOwner = ffi.Pointer< ffi .NativeFunction)>>; /// This header replicates most of the methods in FlutterFilamentApi.h, and is only intended to be used to generate client FFI bindings. /// The intention is that calling one of these methods will call its respective method in FlutterFilamentApi.h, but wrapped in some kind of thread runner to ensure thread safety. typedef EntityId = ffi.Int32; typedef _ManipulatorMode = ffi.Int32; typedef FilamentRenderCallback = ffi.Pointer< ffi.NativeFunction owner)>>; const int __bool_true_false_are_defined = 1; const int true1 = 1; const int false1 = 0; const int __DARWIN_ONLY_64_BIT_INO_T = 1; const int __DARWIN_ONLY_UNIX_CONFORMANCE = 1; const int __DARWIN_ONLY_VERS_1050 = 1; const int __DARWIN_UNIX03 = 1; const int __DARWIN_64_BIT_INO_T = 1; const int __DARWIN_VERS_1050 = 1; const int __DARWIN_NON_CANCELABLE = 0; const String __DARWIN_SUF_EXTSN = '\$DARWIN_EXTSN'; const int __DARWIN_C_ANSI = 4096; const int __DARWIN_C_FULL = 900000; const int __DARWIN_C_LEVEL = 900000; const int __STDC_WANT_LIB_EXT1__ = 1; const int __DARWIN_NO_LONG_LONG = 0; const int _DARWIN_FEATURE_64_BIT_INODE = 1; const int _DARWIN_FEATURE_ONLY_64_BIT_INODE = 1; const int _DARWIN_FEATURE_ONLY_VERS_1050 = 1; const int _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1; const int _DARWIN_FEATURE_UNIX_CONFORMANCE = 3; const int __has_ptrcheck = 0; const int __DARWIN_NULL = 0; const int __PTHREAD_SIZE__ = 8176; const int __PTHREAD_ATTR_SIZE__ = 56; const int __PTHREAD_MUTEXATTR_SIZE__ = 8; const int __PTHREAD_MUTEX_SIZE__ = 56; const int __PTHREAD_CONDATTR_SIZE__ = 8; const int __PTHREAD_COND_SIZE__ = 40; const int __PTHREAD_ONCE_SIZE__ = 8; const int __PTHREAD_RWLOCK_SIZE__ = 192; const int __PTHREAD_RWLOCKATTR_SIZE__ = 16; const int __DARWIN_WCHAR_MAX = 2147483647; const int __DARWIN_WCHAR_MIN = -2147483648; const int __DARWIN_WEOF = -1; const int _FORTIFY_SOURCE = 2; const int NULL = 0; const int USER_ADDR_NULL = 0; const int __WORDSIZE = 64; const int INT8_MAX = 127; const int INT16_MAX = 32767; const int INT32_MAX = 2147483647; const int INT64_MAX = 9223372036854775807; const int INT8_MIN = -128; const int INT16_MIN = -32768; const int INT32_MIN = -2147483648; const int INT64_MIN = -9223372036854775808; const int UINT8_MAX = 255; const int UINT16_MAX = 65535; const int UINT32_MAX = 4294967295; const int UINT64_MAX = -1; const int INT_LEAST8_MIN = -128; const int INT_LEAST16_MIN = -32768; const int INT_LEAST32_MIN = -2147483648; const int INT_LEAST64_MIN = -9223372036854775808; const int INT_LEAST8_MAX = 127; const int INT_LEAST16_MAX = 32767; const int INT_LEAST32_MAX = 2147483647; const int INT_LEAST64_MAX = 9223372036854775807; const int UINT_LEAST8_MAX = 255; const int UINT_LEAST16_MAX = 65535; const int UINT_LEAST32_MAX = 4294967295; const int UINT_LEAST64_MAX = -1; const int INT_FAST8_MIN = -128; const int INT_FAST16_MIN = -32768; const int INT_FAST32_MIN = -2147483648; const int INT_FAST64_MIN = -9223372036854775808; const int INT_FAST8_MAX = 127; const int INT_FAST16_MAX = 32767; const int INT_FAST32_MAX = 2147483647; const int INT_FAST64_MAX = 9223372036854775807; const int UINT_FAST8_MAX = 255; const int UINT_FAST16_MAX = 65535; const int UINT_FAST32_MAX = 4294967295; const int UINT_FAST64_MAX = -1; const int INTPTR_MAX = 9223372036854775807; const int INTPTR_MIN = -9223372036854775808; const int UINTPTR_MAX = -1; const int INTMAX_MAX = 9223372036854775807; const int UINTMAX_MAX = -1; const int INTMAX_MIN = -9223372036854775808; const int PTRDIFF_MIN = -9223372036854775808; const int PTRDIFF_MAX = 9223372036854775807; const int SIZE_MAX = -1; const int RSIZE_MAX = 9223372036854775807; const int WCHAR_MAX = 2147483647; const int WCHAR_MIN = -2147483648; const int WINT_MIN = -2147483648; const int WINT_MAX = 2147483647; const int SIG_ATOMIC_MIN = -2147483648; const int SIG_ATOMIC_MAX = 2147483647;