remove superseded destroyTexture method (call texture.dispose() instead)

This commit is contained in:
Nick Fisher
2025-03-05 17:32:48 +08:00
parent 5b80dd3a3d
commit 2915655695
3 changed files with 0 additions and 14 deletions

View File

@@ -1897,13 +1897,6 @@ class ThermionViewerFFI extends ThermionViewer {
return FFILinearImage(ptr);
}
///
///
///
Future destroyTexture(FFITexture texture) async {
destroy_texture(_sceneManager!, texture.pointer.cast<Void>());
}
///
///
///

View File

@@ -803,10 +803,6 @@ abstract class ThermionViewer {
///
Future<LinearImage> createImage(int width, int height, int channels);
///
///
///
Future destroyTexture(covariant ThermionTexture texture);
///
///

View File

@@ -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