add setCameraModelMatrix method for iOS

This commit is contained in:
Nick Fisher
2023-01-06 13:41:50 +08:00
parent 52af1171e1
commit 713e4e8112
7 changed files with 90 additions and 20 deletions

View File

@@ -82,6 +82,10 @@ extern "C" {
((FilamentViewer*)viewer)->setCameraRotation(rads, x, y, z);
}
void set_camera_model_matrix(void* viewer, const float* const matrix) {
((FilamentViewer*)viewer)->setCameraModelMatrix(matrix);
}
void set_camera_focal_length(void* viewer, float focalLength) {
((FilamentViewer*)viewer)->setCameraFocalLength(focalLength);
}