Commit Graph

408 Commits

Author SHA1 Message Date
Nick Fisher
5b41d594da on macOS/windows, always create stencil buffer by default 2025-07-01 10:22:07 +08:00
Nick Fisher
584abd6086 on macOS, always create stencil buffer by default 2025-07-01 10:21:39 +08:00
Nick Fisher
f0cf20d904 (docs) fix links 2025-06-25 15:56:21 +08:00
Nick Fisher
634c6d6877 (web) only requestFrame/setState when canvas is imported as widget 2025-06-24 15:33:50 +08:00
Nick Fisher
4dbd761d16 always request stencil buffer (depth24_stencil8) on macos/ios 2025-06-23 12:48:25 +08:00
Nick Fisher
f93e44abd5 (web) don't hardcore 60fps timer on web 2025-06-23 12:44:37 +08:00
Nick Fisher
a89c6d0eb3 update key map 2025-06-23 12:39:25 +08:00
Nick Fisher
37c35906d6 add propagateEvents arg to ThermionListenerWidget
expose physical/logical key maps
dont await InputHandler.handle - this no longer returns a future
2025-06-20 18:36:31 +08:00
Nick Fisher
37c67c2da8 (macos) create render target texture with isStencil:false 2025-06-10 10:24:01 +08:00
Nick Fisher
32b6b1c227 (flutter) add zero size check in TextureWidget 2025-06-02 12:58:53 +08:00
Nick Fisher
3fd15ab91b (flutter) add zero size check for texture descriptors 2025-06-02 12:58:11 +08:00
Nick Fisher
ccdf2ecda6 (flutter) better synchronization in ThermionTextureWidget with presentation deadline 2025-05-30 14:35:24 +08:00
Nick Fisher
b12dc80cfd (flutter) (web) only set position/zIndex for canvas if createCanvas is true 2025-05-28 10:48:39 +08:00
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