Commit Graph

395 Commits

Author SHA1 Message Date
Nick Fisher
5a74345fe1 specify texture flags for render target in flutter 2025-05-23 16:28:09 +08:00
Nick Fisher
9a6bacc73f pass both logical key & physical key to input handler on keyboard keypress 2025-05-21 12:01:50 +08:00
Nick Fisher
fdd3853121 add await to inputHandler calls in ThermionListenerWidget 2025-05-18 15:11:52 +08:00
Nick Fisher
c53266f12f move ThermionFlutterWebOptions to platform_interface package 2025-05-18 15:11:52 +08:00
Nick Fisher
b0087d8d54 rename loadResource in ThermionFlutterWeb 2025-05-18 14:46:39 +08:00
Nick Fisher
417ee4648f (flutter) rename resourceLoader to loadResource and don't pass to ThermionViewerFFI 2025-05-17 22:19:09 +08:00
Nick Fisher
cff0893d53 await future in ThermionListenerWidget 2025-05-13 16:42:50 +08:00
Nick Fisher
6135c5eecc (android) use flutter.ndkVersion in thermion_flutter build.gradle 2025-05-13 16:42:32 +08:00
Nick Fisher
2f5ce65684 add JNI_OnLoad to Android library. This is needed to manually call ::filament::backend::VirtualMachineEnv::JNI_OnLoad 2025-05-12 14:15:11 +08:00
Nick Fisher
97da08ae8b explicitly state type 2025-05-10 09:07:52 +08:00
Nick Fisher
602e220024 update ThermionListenerWidget to use newer InputHandler interface 2025-05-09 11:24:28 +08:00
Nick Fisher
04d3aee2e9 don't actually invoke markTextureFrameAvailable on Android (the swapchain is attached to the window so this is not necessary 2025-05-08 17:25:54 +08:00
Nick Fisher
87396ec859 [android] remove legacy references to ResourceBuffer/RenderCallback and switch from JNA to JNI for getting native window handle 2025-05-08 16:47:39 +08:00
Nick Fisher
2f16908992 feat! js_interop improvements 2025-05-07 17:06:38 +08:00
Nick Fisher
afd8bff58e remove superseded Linux resource loader 2025-05-07 16:53:16 +08:00
Nick Fisher
230af0ae17 remove unused import 2025-04-16 17:23:55 +08:00
Nick Fisher
9ceedb4e1c default to release mode builds 2025-04-16 16:01:49 +08:00
Nick Fisher
85a0451f1b remove outdated resource loader methods for iOS/macOS/Android 2025-04-16 14:01:47 +08:00
Nick Fisher
b160932ff3 logging 2025-04-16 14:00:30 +08:00
Nick Fisher
726f9b8c80 OK to return Flutter texture handle even if width or height don't match 2025-04-16 13:54:10 +08:00
Nick Fisher
2bd64805a9 logging on Windows 2025-04-16 13:34:08 +08:00
Nick Fisher
8157f3318b revert CameraOrientationWidget 2025-04-16 13:33:15 +08:00
Nick Fisher
fbbb4ed792 specify thermion_dart in thermion_flutter dependency_overrides to fix intellisense in during dev 2025-04-16 13:32:46 +08:00
Nick Fisher
4815b0309e force /MD for Flutter Windows plugin 2025-04-16 13:30:06 +08:00
Nick Fisher
ccda475073 logging 2025-04-02 23:00:59 +08:00
Nick Fisher
cf372f4dc2 call method channel destroyContext on Windows 2025-04-02 22:28:47 +08:00
Nick Fisher
854b142973 call method channel destroyContext 2025-04-02 22:28:25 +08:00
Nick Fisher
7d8f7a726b properly null out texture references on disposal 2025-04-02 22:27:36 +08:00
Nick Fisher
73cb20a2dd remove ResourceBuffer/loadResource/etc from Flutter Windows implementation 2025-04-02 22:21:01 +08:00
Nick Fisher
508c184f1a add missing Filament headers for Windows 2025-04-02 22:15:11 +08:00
Nick Fisher
4bdbb170a7 export ViewerWidget 2025-03-28 11:48:39 +08:00
Nick Fisher
973804ed14 update ViewerWidget 2025-03-28 11:47:46 +08:00
Nick Fisher
9978d9d75c use View as key for ThermionWidget and update docstrings 2025-03-28 11:47:31 +08:00
Nick Fisher
e4f436fab1 use unregister in ThermionFlutterMethodChannelPlatform 2025-03-28 11:47:00 +08:00
Nick Fisher
ac5b5b89f6 remove old ThermionFlutterWindow class 2025-03-28 11:46:32 +08:00
Nick Fisher
b69977929c in ThermionListenerWidget, don't return child before the input handler has initialized 2025-03-28 11:46:11 +08:00
Nick Fisher
255c0edd49 refactoring 2025-03-21 14:56:20 +08:00
Nick Fisher
6744c02019 refactoring 2025-03-19 17:54:43 +08:00
Nick Fisher
e2048c3efd refactoring 2025-03-19 16:03:44 +08:00
Nick Fisher
627447f8b0 refactoring 2025-03-19 12:27:13 +08:00
Nick Fisher
988e22fe95 rename updateViewport -> setViewport 2025-03-17 16:59:57 +08:00
Nick Fisher
401048e6a8 allow creation/import of Metal depth texture 2025-03-17 16:59:35 +08:00
Nick Fisher
15134c335b hide Texture import inside ThermionTextureWidget to avoid clash 2025-03-04 18:16:36 +08:00
Nick Fisher
ffc256228a add fps counters and headroom 2025-03-01 13:02:05 +08:00
Nick Fisher
4c1480864e remove thermion_flutter_ffi from thermion_flutter pubspec 2025-03-01 12:29:15 +08:00
Nick Fisher
16ff7ef008 fix: rename msPerFrame property 2025-03-01 11:52:31 +08:00
Nick Fisher
61abed2fb7 internal: use msPerFrame to control render timing 2025-03-01 11:50:43 +08:00
Nick Fisher
30060578ef chore(release): publish packages
- thermion_dart@0.2.1-dev.20.0
 - thermion_flutter@0.2.1-dev.20.0
 - thermion_flutter_platform_interface@0.2.1-dev.20.0
 - thermion_flutter_ffi@0.2.1-dev.20.0
 - thermion_flutter_web@0.2.0+11
2025-03-01 11:50:41 +08:00
Nick Fisher
baf86d1ade refactor!: move light methods from FilamentViewer to SceneManager/TLightManager and rename clearLights/clearAssets to destroyLights/destroyAssets 2025-01-07 08:25:48 +08:00
Nick Fisher
5e89dc43e8 feat: add FocusNode to ThermionListenerWidget 2025-01-07 08:25:48 +08:00