update macOS

This commit is contained in:
Nick Fisher
2023-11-08 17:47:21 +08:00
parent af543f46b2
commit 962d53442f
3 changed files with 9 additions and 1 deletions

View File

@@ -157,7 +157,7 @@ namespace polyvox
float _cameraFocalLength = 28.0f;
float _cameraFocusDistance = 0.0f;
Manipulator<double> *_manipulator = nullptr;
filament::camutils::Mode _manipulatorMode;
filament::camutils::Mode _manipulatorMode = filament::camutils::Mode::ORBIT;
double _orbitSpeedX = 0.01;
double _orbitSpeedY = 0.01;
double _zoomSpeed = 0.01;

View File

@@ -163,6 +163,7 @@ FLUTTER_PLUGIN_EXPORT void set_post_processing(void* const viewer, bool enabled)
FLUTTER_PLUGIN_EXPORT void pick(void* const viewer, int x, int y, EntityId* entityId);
FLUTTER_PLUGIN_EXPORT const char* get_name_for_entity(void* const assetManager, const EntityId entityId);
FLUTTER_PLUGIN_EXPORT void ios_dummy();
FLUTTER_PLUGIN_EXPORT void flutter_filament_free(void* ptr);
#ifdef __cplusplus
}
#endif

View File

@@ -445,4 +445,11 @@ extern "C"
{
Log("Dummy called");
}
FLUTTER_PLUGIN_EXPORT void flutter_filament_free(void* ptr)
{
free(ptr);
}
}