diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-02 12:03:09 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-02 12:03:09 +0100 |
commit | fb5f34a75a4b2e2becb97448b2bfcaf9ae214cd5 (patch) | |
tree | e30d48e7eedbe80357ee9a0ae5d2d5be0e94b934 /modules/openxr/openxr_api.h | |
parent | 24a2560d3050ce5fd978e0c37871852340003a4a (diff) | |
parent | 5935bfa8603b7c22df4ea777a688723a408e6c5d (diff) | |
download | redot-engine-fb5f34a75a4b2e2becb97448b2bfcaf9ae214cd5.tar.gz |
Merge pull request #87745 from dsnopek/openxr-change-reference-space
OpenXR: Allow changing play area mode during active session
Diffstat (limited to 'modules/openxr/openxr_api.h')
-rw-r--r-- | modules/openxr/openxr_api.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/openxr/openxr_api.h b/modules/openxr/openxr_api.h index 8cc6be3a9d..5e5a3d4663 100644 --- a/modules/openxr/openxr_api.h +++ b/modules/openxr/openxr_api.h @@ -232,7 +232,8 @@ private: bool create_session(); bool load_supported_reference_spaces(); bool is_reference_space_supported(XrReferenceSpaceType p_reference_space); - bool setup_spaces(); + bool setup_play_space(); + bool setup_view_space(); bool load_supported_swapchain_formats(); bool is_swapchain_format_supported(int64_t p_swapchain_format); bool create_swapchains(); @@ -339,7 +340,7 @@ public: void set_view_configuration(XrViewConfigurationType p_view_configuration); XrViewConfigurationType get_view_configuration() const { return view_configuration; } - void set_requested_reference_space(XrReferenceSpaceType p_requested_reference_space); + bool set_requested_reference_space(XrReferenceSpaceType p_requested_reference_space); XrReferenceSpaceType get_requested_reference_space() const { return requested_reference_space; } XrReferenceSpaceType get_reference_space() const { return reference_space; } |