diff options
author | David Snopek <dsnopek@gmail.com> | 2024-01-30 10:30:54 -0600 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2024-01-31 12:58:22 -0600 |
commit | 5935bfa8603b7c22df4ea777a688723a408e6c5d (patch) | |
tree | 5cb3c3453fbb5a2e74442e7902b93e5d3cd35191 /modules/openxr/openxr_api.h | |
parent | 51991e20143a39e9ef0107163eaf283ca0a761ea (diff) | |
download | redot-engine-5935bfa8603b7c22df4ea777a688723a408e6c5d.tar.gz |
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 6e55020aef..4941acb04e 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(); @@ -338,7 +339,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; } |