add setViewFrustumCulling, zoomDelta for gesture detector and cleanup

This commit is contained in:
Nick Fisher
2023-09-26 14:51:18 +08:00
parent 833022e4e0
commit 182df02b06
8 changed files with 41 additions and 9 deletions

View File

@@ -82,6 +82,7 @@ namespace polyvox {
void clearBackgroundImage();
void setBackgroundImagePosition(float x, float y, bool clamp);
void moveCameraToAsset(EntityId entityId);
void setViewFrustumCulling(bool enabled);
void setCameraExposure(float aperture, float shutterSpeed, float sensitivity);
void setCameraPosition(float x, float y, float z);
void setCameraRotation(float rads, float x, float y, float z);

View File

@@ -90,6 +90,7 @@ void set_position(void* assetManager, EntityId asset, float x, float y, float z)
void set_rotation(void* assetManager, EntityId asset, float rads, float x, float y, float z);
void set_scale(void* assetManager, EntityId asset, float scale);
void move_camera_to_asset(const void* const viewer, EntityId asset);
void set_view_frustum_culling(const void* const viewer, bool enabled);
void set_camera_exposure(const void* const viewer, float aperture, float shutterSpeed, float sensitivity);
void set_camera_position(const void* const viewer, float x, float y, float z);
void set_camera_rotation(const void* const viewer, float rads, float x, float y, float z);