From 3e74c8faeacd07647e5d6d3bda850938c8489a63 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 7 Jan 2025 08:30:22 +0800 Subject: [PATCH] internal: regenerate bindings --- .../viewer/src/ffi/src/thermion_dart.g.dart | 120 +++++++++++++++++- 1 file changed, 115 insertions(+), 5 deletions(-) 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 52ca1a92..73a7dfbc 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 @@ -268,6 +268,68 @@ external void LightManager_setDirection( double z, ); +@ffi.Native, EntityId, ffi.Int)>( + isLeaf: true) +external int LightManager_createLight( + ffi.Pointer tLightManager, + int entity, + int type, +); + +@ffi.Native, EntityId)>( + isLeaf: true) +external void LightManager_destroyLight( + ffi.Pointer tLightManager, + int entity, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, EntityId, ffi.Double, + ffi.Double, ffi.Double)>(isLeaf: true) +external void LightManager_setColor( + ffi.Pointer tLightManager, + int entity, + double r, + double g, + double b, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, EntityId, ffi.Double)>(isLeaf: true) +external void LightManager_setIntensity( + ffi.Pointer tLightManager, + int entity, + double intensity, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, EntityId, ffi.Double)>(isLeaf: true) +external void LightManager_setFalloff( + ffi.Pointer tLightManager, + int entity, + double falloff, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, EntityId, ffi.Double, + ffi.Double)>(isLeaf: true) +external void LightManager_setSpotLightCone( + ffi.Pointer tLightManager, + int entity, + double inner, + double outer, +); + +@ffi.Native, EntityId, ffi.Bool)>( + isLeaf: true) +external void LightManager_setShadowCaster( + ffi.Pointer tLightManager, + int entity, + bool enabled, +); + @ffi.Native< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(isLeaf: true) @@ -491,6 +553,11 @@ external void set_background_color( double a, ); +@ffi.Native)>(isLeaf: true) +external int Viewer_getMainCamera( + ffi.Pointer viewer, +); + @ffi.Native, ffi.Pointer)>( isLeaf: true) external void Viewer_loadSkybox( @@ -535,11 +602,6 @@ external void rotate_ibl( ffi.Pointer rotationMatrix, ); -@ffi.Native)>(isLeaf: true) -external int get_main_camera( - ffi.Pointer viewer, -); - @ffi.Native, ffi.Float)>(isLeaf: true) external void set_frame_interval( ffi.Pointer viewer, @@ -2214,6 +2276,54 @@ external bool RenderableManager_isRenderable( int entityId, ); +/// Checks if the given entity has a renderable component +@ffi.Native, EntityId)>( + isLeaf: true) +external bool RenderableManager_hasComponent( + ffi.Pointer tRenderableManager, + int entityId, +); + +/// Returns true if this manager has no components +@ffi.Native)>(isLeaf: true) +external bool RenderableManager_empty( + ffi.Pointer tRenderableManager, +); + +/// Returns whether a light channel is enabled on a specified renderable +@ffi.Native< + ffi.Bool Function(ffi.Pointer, EntityId, + ffi.UnsignedInt)>(isLeaf: true) +external bool RenderableManager_getLightChannel( + ffi.Pointer tRenderableManager, + int entityId, + int channel, +); + +/// Checks if the renderable can cast shadows +@ffi.Native, EntityId)>( + isLeaf: true) +external bool RenderableManager_isShadowCaster( + ffi.Pointer tRenderableManager, + int entityId, +); + +/// Checks if the renderable can receive shadows +@ffi.Native, EntityId)>( + isLeaf: true) +external bool RenderableManager_isShadowReceiver( + ffi.Pointer tRenderableManager, + int entityId, +); + +/// Returns whether large-scale fog is enabled for this renderable +@ffi.Native, EntityId)>( + isLeaf: true) +external bool RenderableManager_getFogEnabled( + ffi.Pointer tRenderableManager, + int entityId, +); + @ffi.Native, ffi.Pointer)>( isLeaf: true) external void SceneAsset_addToScene(