fix: reduce size of pick functor for compatibility with armeabi-v7a

This commit is contained in:
Nick Fisher
2024-10-30 10:44:55 +08:00
parent b7c14ebbda
commit 7c15125a97
5 changed files with 26 additions and 15 deletions

View File

@@ -56,6 +56,11 @@ extern "C"
((FilamentViewer *)viewer)->pick(view, static_cast<uint32_t>(x), static_cast<uint32_t>(y), reinterpret_cast<FilamentViewer::PickCallback>(callback));
}
EMSCRIPTEN_KEEPALIVE bool Viewer_isNonPickableEntity(TViewer *tViewer, EntityId entityId) {
auto *viewer = reinterpret_cast<FilamentViewer*>(tViewer);
return viewer->isNonPickableEntity(entityId);
}
EMSCRIPTEN_KEEPALIVE void destroy_filament_viewer(TViewer *viewer)
{
delete ((FilamentViewer *)viewer);