From 2915655695fc45b0fefac4462656926006bd60f1 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 5 Mar 2025 17:32:48 +0800 Subject: [PATCH] remove superseded destroyTexture method (call texture.dispose() instead) --- .../lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart | 7 ------- thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart | 4 ---- thermion_dart/native/include/c_api/ThermionDartApi.h | 3 --- 3 files changed, 14 deletions(-) diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart index 48b457b1..0cbdcd8a 100644 --- a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart +++ b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart @@ -1897,13 +1897,6 @@ class ThermionViewerFFI extends ThermionViewer { return FFILinearImage(ptr); } - /// - /// - /// - Future destroyTexture(FFITexture texture) async { - destroy_texture(_sceneManager!, texture.pointer.cast()); - } - /// /// /// diff --git a/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart b/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart index 394d444d..3f69bfab 100644 --- a/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart +++ b/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart @@ -803,10 +803,6 @@ abstract class ThermionViewer { /// Future createImage(int width, int height, int channels); - /// - /// - /// - Future destroyTexture(covariant ThermionTexture texture); /// /// diff --git a/thermion_dart/native/include/c_api/ThermionDartApi.h b/thermion_dart/native/include/c_api/ThermionDartApi.h index 39a4a3de..214e6324 100644 --- a/thermion_dart/native/include/c_api/ThermionDartApi.h +++ b/thermion_dart/native/include/c_api/ThermionDartApi.h @@ -75,9 +75,6 @@ extern "C" EMSCRIPTEN_KEEPALIVE Aabb2 get_bounding_box(TSceneManager *sceneManager, TView *view, EntityId entity); EMSCRIPTEN_KEEPALIVE void get_bounding_box_to_out(TSceneManager *sceneManager, TView *view, EntityId entity, float *minX, float *minY, float *maxX, float *maxY); - EMSCRIPTEN_KEEPALIVE void destroy_texture(TSceneManager *sceneManager, void *const texture); - - #ifdef __cplusplus } #endif