pass callback to native pick() and remove pick_ffi

This commit is contained in:
Nick Fisher
2024-03-09 11:17:25 +08:00
parent 6e9a02b5b5
commit 13fa60e8de
5 changed files with 6 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ namespace flutter_filament
void scrollBegin();
void scrollUpdate(float x, float y, float delta);
void scrollEnd();
void pick(uint32_t x, uint32_t y, EntityId *entityId);
void pick(uint32_t x, uint32_t y, void (*callback)(EntityId entityId, int x, int y));
EntityId addLight(LightManager::Type t, float colour, float intensity, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, bool shadows);
void removeLight(EntityId entityId);