auto wivrn_hmd_get_view_poses

This commit is contained in:
Patrick Nicolas
2025-03-02 20:34:32 +01:00
parent 1ecd14b615
commit 098642bcc5
+1 -20
View File
@@ -41,14 +41,6 @@ namespace wivrn
static void wivrn_hmd_destroy(xrt_device * xdev);
static void wivrn_hmd_get_view_poses(xrt_device * xdev,
const xrt_vec3 * default_eye_relation,
int64_t at_timestamp_ns,
uint32_t view_count,
xrt_space_relation * out_head_relation,
xrt_fov * out_fovs,
xrt_pose * out_poses);
static xrt_result_t wivrn_hmd_get_battery_status(struct xrt_device * xdev,
bool * out_present,
bool * out_charging,
@@ -213,7 +205,7 @@ wivrn_hmd::wivrn_hmd(wivrn::wivrn_session * cnx,
base->update_inputs = [](xrt_device *) { return XRT_SUCCESS; };
base->get_tracked_pose = method_pointer<&wivrn_hmd::get_tracked_pose>;
base->get_view_poses = wivrn_hmd_get_view_poses;
base->get_view_poses = method_pointer<&wivrn_hmd::get_view_poses>;
base->get_battery_status = wivrn_hmd_get_battery_status;
base->get_visibility_mask = get_visibility_mask;
base->destroy = wivrn_hmd_destroy;
@@ -436,17 +428,6 @@ static void wivrn_hmd_destroy(xrt_device * xdev)
static_cast<wivrn_hmd *>(xdev)->unregister();
}
static void wivrn_hmd_get_view_poses(xrt_device * xdev,
const xrt_vec3 * default_eye_relation,
int64_t at_timestamp_ns,
uint32_t view_count,
xrt_space_relation * out_head_relation,
xrt_fov * out_fovs,
xrt_pose * out_poses)
{
static_cast<wivrn_hmd *>(xdev)->get_view_poses(default_eye_relation, at_timestamp_ns, view_count, out_head_relation, out_fovs, out_poses);
}
static xrt_result_t wivrn_hmd_get_battery_status(struct xrt_device * xdev,
bool * out_present,
bool * out_charging,