diff options
author | Logan Lang <devloglogan@gmail.com> | 2024-02-18 20:06:36 -0600 |
---|---|---|
committer | Logan Lang <devloglogan@gmail.com> | 2024-02-19 16:31:10 -0600 |
commit | 74413f560916ae700d4209d7733b801bf465a0c3 (patch) | |
tree | 0a29a6f073b58dfa08ca06b65b0616a86cd35e55 /modules/openxr/openxr_api.h | |
parent | fb10e67fefb85af3b8f5abd30db561588d8456c6 (diff) | |
download | redot-engine-74413f560916ae700d4209d7733b801bf465a0c3.tar.gz |
expose OpenXR hand tracker handles
Diffstat (limited to 'modules/openxr/openxr_api.h')
-rw-r--r-- | modules/openxr/openxr_api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/openxr/openxr_api.h b/modules/openxr/openxr_api.h index d39e6e0b2e..d3e6eb01ce 100644 --- a/modules/openxr/openxr_api.h +++ b/modules/openxr/openxr_api.h @@ -359,6 +359,8 @@ public: XrTime get_next_frame_time() { return frame_state.predictedDisplayTime + frame_state.predictedDisplayPeriod; } bool can_render() { return instance != XR_NULL_HANDLE && session != XR_NULL_HANDLE && running && view_pose_valid && frame_state.shouldRender; } + XrHandTrackerEXT get_hand_tracker(int p_hand_index); + Size2 get_recommended_target_size(); XRPose::TrackingConfidence get_head_center(Transform3D &r_transform, Vector3 &r_linear_velocity, Vector3 &r_angular_velocity); bool get_view_transform(uint32_t p_view, Transform3D &r_transform); |