use pixels in setBackgroundImagePosition and add argument for clamp

This commit is contained in:
Nick Fisher
2022-09-07 17:40:18 +10:00
parent a5cf61f410
commit fd90bae53f
6 changed files with 68 additions and 47 deletions

View File

@@ -28,8 +28,8 @@ extern "C" {
((FilamentViewer*)viewer)->setBackgroundImage(path);
}
void set_background_image_position(void* viewer, float x, float y) {
((FilamentViewer*)viewer)->setBackgroundImagePosition(x, y);
void set_background_image_position(void* viewer, float x, float y, bool clamp) {
((FilamentViewer*)viewer)->setBackgroundImagePosition(x, y, clamp);
}
void load_skybox(void* viewer, const char* skyboxPath) {