diff options
author | David Snopek <dsnopek@gmail.com> | 2024-03-25 08:07:28 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2024-04-04 09:20:23 -0500 |
commit | 0f2b804059331f2454e060577ae0e1b44675c5aa (patch) | |
tree | f83679824636edffe9827d9d968b0b85d2e54708 /modules/openxr/register_types.cpp | |
parent | 29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff) | |
download | redot-engine-0f2b804059331f2454e060577ae0e1b44675c5aa.tar.gz |
Add support for OpenXR composition layers
Co-authored-by: Bastiaan Olij <mux213@gmail.com>
Diffstat (limited to 'modules/openxr/register_types.cpp')
-rw-r--r-- | modules/openxr/register_types.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/openxr/register_types.cpp b/modules/openxr/register_types.cpp index 3d34b27407..68cdb6d998 100644 --- a/modules/openxr/register_types.cpp +++ b/modules/openxr/register_types.cpp @@ -39,9 +39,14 @@ #include "extensions/openxr_extension_wrapper_extension.h" +#include "scene/openxr_composition_layer.h" +#include "scene/openxr_composition_layer_cylinder.h" +#include "scene/openxr_composition_layer_equirect.h" +#include "scene/openxr_composition_layer_quad.h" #include "scene/openxr_hand.h" #include "extensions/openxr_composition_layer_depth_extension.h" +#include "extensions/openxr_composition_layer_extension.h" #include "extensions/openxr_eye_gaze_interaction.h" #include "extensions/openxr_fb_display_refresh_rate_extension.h" #include "extensions/openxr_hand_tracking_extension.h" @@ -110,6 +115,7 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) { OpenXRAPI::register_extension_wrapper(memnew(OpenXRLocalFloorExtension)); OpenXRAPI::register_extension_wrapper(memnew(OpenXRPicoControllerExtension)); OpenXRAPI::register_extension_wrapper(memnew(OpenXRCompositionLayerDepthExtension)); + OpenXRAPI::register_extension_wrapper(memnew(OpenXRCompositionLayerExtension)); OpenXRAPI::register_extension_wrapper(memnew(OpenXRHTCControllerExtension)); OpenXRAPI::register_extension_wrapper(memnew(OpenXRHTCViveTrackerExtension)); OpenXRAPI::register_extension_wrapper(memnew(OpenXRHuaweiControllerExtension)); @@ -162,6 +168,11 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) { GDREGISTER_CLASS(OpenXRIPBinding); GDREGISTER_CLASS(OpenXRInteractionProfile); + GDREGISTER_ABSTRACT_CLASS(OpenXRCompositionLayer); + GDREGISTER_CLASS(OpenXRCompositionLayerEquirect); + GDREGISTER_CLASS(OpenXRCompositionLayerCylinder); + GDREGISTER_CLASS(OpenXRCompositionLayerQuad); + GDREGISTER_CLASS(OpenXRHand); XRServer *xr_server = XRServer::get_singleton(); |