Commit Graph

49 Commits

Author SHA1 Message Date
Nick Fisher
51d79c7626 fix: bump ffigen dependency version & regenerate bindings (and revert to ffi.Int rather than ffi.Int32) 2024-06-26 12:46:56 +08:00
Nick Fisher
4955837518 chore(release): publish packages
- thermion_dart@0.1.1+2
 - thermion_flutter@0.1.1+7
 - thermion_flutter_ffi@0.1.0+6
 - thermion_flutter_platform_interface@0.1.0+6
 - thermion_flutter_web@0.0.1+6
2024-06-26 00:12:32 +08:00
Nick Fisher
0e9cf76592 chore(release): publish packages
- thermion_dart@0.1.1-dev.0+2
 - thermion_flutter@0.1.1-dev.0+7
 - thermion_flutter_platform_interface@0.1.0-dev.0+6
 - thermion_flutter_web@0.0.1-dev.0+6
 - thermion_flutter_ffi@0.1.0-dev.0+6
2024-06-26 00:10:56 +08:00
Nick Fisher
81be5e25f7 fix: revert to std::thread (pthreads not easily available on Windows) 2024-06-26 01:50:22 +10:00
Nick Fisher
e8e1684694 fix: on Windows, pass static libs via -l rather than custom linkWith property so build.dart stays compatible between published & custom versions 2024-06-26 01:49:37 +10:00
Nick Fisher
c635bd3813 chore(release): publish packages
- thermion_dart@0.1.1+1
 - thermion_flutter@0.1.1+6
 - thermion_flutter_web@0.0.1+5
 - thermion_flutter_platform_interface@0.1.0+5
 - thermion_flutter_ffi@0.1.0+5
2024-06-22 10:29:41 +08:00
Nick Fisher
b4f9a5c2af docs: update with links to playground 2024-06-22 10:29:08 +08:00
Nick Fisher
0222ba2d6c chore(release): publish packages
- thermion_dart@0.1.1
2024-06-21 17:18:43 +08:00
Nick Fisher
a066df55f9 chore(release): publish packages
- thermion_dart@0.1.0+4
 - thermion_flutter_web@0.0.1+4
 - thermion_flutter_platform_interface@0.1.0+4
 - thermion_flutter@0.1.1+5
 - thermion_flutter_ffi@0.1.0+4
2024-06-21 16:52:19 +08:00
Nick Fisher
aa85dcfa20 fix: add dummy asset to build.dart on Linux builds so we can use the package on a Linux host 2024-06-21 16:52:10 +08:00
Nick Fisher
a3370a775f chore(release): publish packages
- thermion_dart@0.1.0+3
 - thermion_flutter_web@0.0.1+3
 - thermion_flutter@0.1.1+4
 - thermion_flutter_platform_interface@0.1.0+3
 - thermion_flutter_ffi@0.1.0+3
2024-06-21 16:21:02 +08:00
Nick Fisher
b889fddcfa fix: exit build.dart early on Linux builds so we can use the package on a Linux host 2024-06-21 16:20:42 +08:00
Nick Fisher
090c36c92b chore(release): publish packages
- thermion_dart@0.1.0+2
 - thermion_flutter_ffi@0.1.0+2
 - thermion_flutter_web@0.0.1+2
 - thermion_flutter@0.1.1+3
 - thermion_flutter_platform_interface@0.1.0+2
2024-06-21 15:24:19 +08:00
Nick Fisher
9eb2285433 refactor: rearrange some stubs/imports for easier web WASM deployment 2024-06-21 15:20:08 +08:00
Nick Fisher
78a758f5d4 chore(release): publish packages
- thermion_dart@0.1.0+1
 - thermion_flutter@0.1.1+1
 - thermion_flutter_web@0.0.1+1
 - thermion_flutter_platform_interface@0.1.0+1
 - thermion_flutter_ffi@0.1.0+1
2024-06-21 11:26:34 +08:00
Nick Fisher
fd19fc1c68 fix: use preserveDrawingBuffer=true on web
using createImageFromImageBitmap to import the canvas directly into a Flutter app results in flickering unless this is set to true (as the drawing buffer is otherwise cleared after each render, which may not line up with Flutter's ticker
2024-06-21 11:19:16 +08:00
Nick Fisher
0ec7e2af95 refactor: export ThermionViewerWasm for web and hide FFI/WASM version 2024-06-21 11:19:16 +08:00
Nick Fisher
c6c918907a rename web interop classes 2024-06-21 11:19:16 +08:00
Nick Fisher
d3891e481e fix log dir creation in build.dart 2024-06-21 11:19:16 +08:00
Nick Fisher
846f45bb63 don't destroy dummy image texture if clearBackgroundImage has been called without setBackgroundImage having been called first 2024-06-19 16:38:14 +08:00
Nick Fisher
735612af66 bump pubspec dependency versions 2024-06-19 13:39:43 +08:00
Nick Fisher
84101b457f add onDispose() implementations for web viewers 2024-06-19 13:31:09 +08:00
Nick Fisher
7dc0e91e6b fix RenderLoop to use (C) ResourceLoaderWrapper and destroy RL when viewer is destroyed 2024-06-19 13:16:33 +08:00
Nick Fisher
49b8e7023b free all resources in FilamentViewer destructor 2024-06-19 13:15:36 +08:00
Nick Fisher
a455e4f88a construct (C++) ResourceLoaderWrapperImpl from (C) ResourceLoaderWrapper 2024-06-19 13:13:36 +08:00
Nick Fisher
3785580b01 free all resources in SceneManager 2024-06-19 13:12:28 +08:00
Nick Fisher
6cfa86fe75 make ResourceBuffer.hpp C++ only and add constructor to create from C struct 2024-06-19 13:11:01 +08:00
Nick Fisher
dc70909715 move Scene class to own file and add dispose() method 2024-06-19 13:04:34 +08:00
Nick Fisher
89f49f98c4 replace print with Logger 2024-06-19 13:01:20 +08:00
Nick Fisher
025e39318d add implementation for onDispose to ThermionViewerFFI 2024-06-19 12:59:16 +08:00
Nick Fisher
cfa7805970 add onDispose method to ThermionViewer to register callbacks on disposal 2024-06-19 12:57:49 +08:00
Nick Fisher
8e892a1f23 log to file for build.dart, check for SUCCESS token 2024-06-19 12:51:39 +08:00
Nick Fisher
dd646e0e5c remove pre-release tag from pub versions 2024-06-17 11:07:34 +08:00
Nick Fisher
1a3b3d0768 use older API for build.dart 2024-06-17 10:40:11 +08:00
Nick Fisher
44842ecec1 doc fixes 2024-06-16 15:11:49 +08:00
Nick Fisher
2787f8529b doc fixes 2024-06-16 15:10:41 +08:00
Nick Fisher
91e41c4eb3 various fixes for publishing all packages to pub.dev 2024-06-16 15:03:52 +08:00
Nick Fisher
19c29adb97 cleanup for publication to pub.dev 2024-06-16 14:24:06 +08:00
Nick Fisher
716da54855 documentation 2024-06-16 14:23:43 +08:00
Nick Fisher
2396a1c1b3 use published native_toolchain_c (required by pub.dev for publication) 2024-06-16 14:23:32 +08:00
Nick Fisher
217197c7d1 add Apache 2.0 licence 2024-06-16 14:23:11 +08:00
Nick Fisher
a616a76eba update thermion_dart CHANGELOG 2024-06-16 13:56:34 +08:00
Nick Fisher
23e0f32931 rename 2024-06-16 13:56:21 +08:00
Nick Fisher
68a67dad19 remove old library dirs 2024-06-16 13:51:16 +08:00
Nick Fisher
af7b2e03b7 delete test outputs 2024-06-16 13:32:58 +08:00
Nick Fisher
cf667c63c5 set thermion_dart pubspec version 2024-06-16 13:30:35 +08:00
Nick Fisher
f8edbc8e62 more renaming & documentation 2024-06-16 13:22:56 +08:00
Nick Fisher
dc0c855135 documentation & further renaming 2024-06-16 13:22:27 +08:00
Nick Fisher
fe62a70e29 renaming to Thermion 2024-06-16 13:22:22 +08:00