add camera utils to API

This commit is contained in:
Nick Fisher
2022-08-26 00:25:45 +10:00
parent d78f70ac50
commit d3faaac6c0
7 changed files with 84 additions and 11 deletions

View File

@@ -57,11 +57,15 @@ extern "C" {
}
void set_camera_position(void* viewer, float x, float y, float z) {
return ((FilamentViewer*)viewer)->setCameraPosition(x, y, z);
((FilamentViewer*)viewer)->setCameraPosition(x, y, z);
}
void set_camera_rotation(void* viewer, float rads, float x, float y, float z) {
return ((FilamentViewer*)viewer)->setCameraRotation(rads, x, y, z);
((FilamentViewer*)viewer)->setCameraRotation(rads, x, y, z);
}
void set_camera_focal_length(void* viewer, float focalLength) {
((FilamentViewer*)viewer)->setCameraFocalLength(focalLength);
}
void render(