diff --git a/thermion_dart/lib/src/bindings/src/thermion_dart_ffi.g.dart b/thermion_dart/lib/src/bindings/src/thermion_dart_ffi.g.dart index 69649f62..027f09db 100644 --- a/thermion_dart/lib/src/bindings/src/thermion_dart_ffi.g.dart +++ b/thermion_dart/lib/src/bindings/src/thermion_dart_ffi.g.dart @@ -339,7 +339,9 @@ external void FilamentAsset_getEntities( @ffi.Native< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer )>(isLeaf: true) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer GltfAssetLoader_create( ffi.Pointer tEngine, ffi.Pointer tMaterialProvider, @@ -553,10 +555,10 @@ external void View_setFrontFaceWindingInverted( bool inverted, ); -@ffi.Native, ffi.Pointer)>(isLeaf: true) +@ffi.Native, TFogOptions)>(isLeaf: true) external void View_setFogOptions( ffi.Pointer tView, - ffi.Pointer tFogOptions, + TFogOptions tFogOptions, ); @ffi.Native< @@ -612,6 +614,11 @@ external ffi.Pointer Texture_build( int format, ); +@ffi.Native)>(isLeaf: true) +external int Texture_getLevels( + ffi.Pointer tTexture, +); + @ffi.Native< ffi.Bool Function( ffi.Pointer, @@ -619,7 +626,7 @@ external ffi.Pointer Texture_build( ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt, - ffi.UnsignedInt)>(isLeaf: true) + ffi.Int)>(isLeaf: true) external bool Texture_loadImage( ffi.Pointer tEngine, ffi.Pointer tTexture, @@ -687,12 +694,6 @@ external bool Texture_setImageWithDepth( int pixelDataType, ); -@ffi.Native)>( - isLeaf: true) -external int Texture_getLevels( - ffi.Pointer tTexture, -); - @ffi.Native, ffi.Uint32)>( isLeaf: true) external int Texture_getWidth( @@ -714,13 +715,6 @@ external int Texture_getDepth( int level, ); -@ffi.Native, ffi.Pointer,)>( - isLeaf: true) -external void Texture_generateMipMaps( - ffi.Pointer tTexture, - ffi.Pointer tEngine, -); - @ffi.Native, ffi.Uint32)>( isLeaf: true) external int Texture_getUsage( @@ -728,6 +722,13 @@ external int Texture_getUsage( int level, ); +@ffi.Native, ffi.Pointer)>( + isLeaf: true) +external void Texture_generateMipMaps( + ffi.Pointer tTexture, + ffi.Pointer tEngine, +); + @ffi.Native< ffi.Pointer Function( ffi.Uint32, ffi.Uint32, ffi.Uint32)>(isLeaf: true) @@ -738,13 +739,13 @@ external ffi.Pointer Image_createEmpty( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Size, ffi.Pointer, ffi.Bool alpha)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer, ffi.Size, + ffi.Pointer, ffi.Bool)>(isLeaf: true) external ffi.Pointer Image_decode( ffi.Pointer data, int length, ffi.Pointer name, - bool alpha + bool alpha, ); @ffi.Native Function(ffi.Pointer)>( @@ -1259,7 +1260,7 @@ external int TransformManager_getAncestor( isLeaf: true) external void TransformManager_createComponent( ffi.Pointer tTransformManager, - int entityId, + int entity, ); @ffi.Native< @@ -1598,11 +1599,9 @@ external void Engine_destroyIndirectLight( ffi.Pointer tIndirectLight, ); -@ffi.Native< - ffi.Int Function( - ffi.Pointer)>(isLeaf: true) +@ffi.Native)>(isLeaf: true) external int EntityManager_createEntity( - ffi.Pointer tEngine + ffi.Pointer tEntityManager, ); @ffi.Native(isLeaf: true) @@ -1878,13 +1877,14 @@ external void Texture_buildRenderThread( onComplete, ); -@ffi.Native, ffi.Pointer, ffi.Uint32, VoidCallback)>( - isLeaf: true) +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Uint32, + VoidCallback)>(isLeaf: true) external void Texture_generateMipMapsRenderThread( ffi.Pointer tTexture, ffi.Pointer tEngine, int requestId, - VoidCallback onComplete + VoidCallback onComplete, ); @ffi.Native< @@ -2329,20 +2329,6 @@ external void MaterialProvider_createMaterialInstanceRenderThread( callback, ); -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint32 requestId, - VoidCallback onComplete)>( - isLeaf: true) -external void AnimationManager_resetToRestPoseRenderThread( - ffi.Pointer tAnimationManager, - ffi.Pointer tSceneAsset, - int requestId, - VoidCallback onComplete -); - @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -2461,7 +2447,7 @@ external void Image_getChannelsRenderThread( ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt, - ffi.UnsignedInt, + ffi.Int, ffi.Pointer>)>( isLeaf: true) external void Texture_loadImageRenderThread( @@ -2728,6 +2714,16 @@ external void AnimationManager_setBoneTransformRenderThread( ffi.Pointer> callback, ); +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Uint32, VoidCallback)>(isLeaf: true) +external void AnimationManager_resetToRestPoseRenderThread( + ffi.Pointer tAnimationManager, + ffi.Pointer tSceneAsset, + int requestId, + VoidCallback onComplete, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -3741,8 +3737,6 @@ final class TFogOptions extends ffi.Struct { @ffi.Float() external double heightFalloff; - external double3 linearColor; - @ffi.Float() external double density; @@ -3752,11 +3746,20 @@ final class TFogOptions extends ffi.Struct { @ffi.Float() external double inScatteringSize; + external ffi.Pointer skyColor; + + @ffi.Float() + external double linearColorR; + + @ffi.Float() + external double linearColorG; + + @ffi.Float() + external double linearColorB; + @ffi.Bool() external bool fogColorFromIbl; - external ffi.Pointer skyColor; - @ffi.Bool() external bool enabled; }