diff options
author | Gabor Koncz <gabor.koncz@migeran.com> | 2022-09-26 09:04:12 +0200 |
---|---|---|
committer | Gabor Koncz <gabor.koncz@migeran.com> | 2022-09-27 12:26:53 +0200 |
commit | 72203a4da40abbf9fbbdca9f9a55b0199b061991 (patch) | |
tree | 043608e0ab50ee4eaad969dfe524a3c8ee390346 /modules/openxr/openxr_interface.h | |
parent | 52aae6d4f11c1142cc644e43d116c3d80ebdd73b (diff) |
Add Passthrough extension wrapper
Diffstat (limited to 'modules/openxr/openxr_interface.h')
-rw-r--r-- | modules/openxr/openxr_interface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/openxr/openxr_interface.h b/modules/openxr/openxr_interface.h index a99012fd1d..3765f18637 100644 --- a/modules/openxr/openxr_interface.h +++ b/modules/openxr/openxr_interface.h @@ -37,6 +37,8 @@ #include "action_map/openxr_action_map.h" #include "openxr_api.h" +#include "extensions/openxr_fb_passthrough_extension_wrapper.h" + // declare some default strings #define INTERACTION_PROFILE_NONE "/interaction_profiles/none" @@ -47,6 +49,7 @@ private: OpenXRAPI *openxr_api = nullptr; bool initialized = false; XRInterface::TrackingStatus tracking_state; + OpenXRFbPassthroughExtensionWrapper *passthrough_wrapper = nullptr; // At a minimum we need a tracker for our head Ref<XRPositionalTracker> head; @@ -129,6 +132,11 @@ public: virtual Vector<BlitToScreen> post_draw_viewport(RID p_render_target, const Rect2 &p_screen_rect) override; virtual void end_frame() override; + virtual bool is_passthrough_supported() override; + virtual bool is_passthrough_enabled() override; + virtual bool start_passthrough() override; + virtual void stop_passthrough() override; + void on_state_ready(); void on_state_visible(); void on_state_focused(); |