diff options
author | David Snopek <dsnopek@gmail.com> | 2024-08-26 17:02:28 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2024-09-11 21:15:22 -0500 |
commit | 3afa26834a072ca1a9bcc53e0e1b9d6467b74ed2 (patch) | |
tree | 7ca5be09765b5ec07cb379ad211286ede0dc7b45 /modules/openxr/scene/openxr_composition_layer_cylinder.h | |
parent | 97ef3c837263099faf02d8ebafd6c77c94d2aaba (diff) | |
download | redot-engine-3afa26834a072ca1a9bcc53e0e1b9d6467b74ed2.tar.gz |
OpenXR: Support composition layers based on Android surfaces
Diffstat (limited to 'modules/openxr/scene/openxr_composition_layer_cylinder.h')
-rw-r--r-- | modules/openxr/scene/openxr_composition_layer_cylinder.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/openxr/scene/openxr_composition_layer_cylinder.h b/modules/openxr/scene/openxr_composition_layer_cylinder.h index 9bd5a42d36..a701575972 100644 --- a/modules/openxr/scene/openxr_composition_layer_cylinder.h +++ b/modules/openxr/scene/openxr_composition_layer_cylinder.h @@ -38,7 +38,18 @@ class OpenXRCompositionLayerCylinder : public OpenXRCompositionLayer { GDCLASS(OpenXRCompositionLayerCylinder, OpenXRCompositionLayer); - XrCompositionLayerCylinderKHR composition_layer; + XrCompositionLayerCylinderKHR composition_layer = { + XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR, // type + nullptr, // next + 0, // layerFlags + XR_NULL_HANDLE, // space + XR_EYE_VISIBILITY_BOTH, // eyeVisibility + {}, // subImage + { { 0, 0, 0, 0 }, { 0, 0, 0 } }, // pose + 1.0, // radius + Math_PI / 2.0, // centralAngle + 1.0, // aspectRatio + }; float radius = 1.0; float aspect_ratio = 1.0; |