mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: Add xrt_device_compute_distortion helper
This commit is contained in:
parent
b805742a53
commit
4b9b1f991c
|
@ -417,6 +417,17 @@ xrt_device_get_view_pose(struct xrt_device *xdev,
|
|||
xdev->get_view_pose(xdev, eye_relation, view_index, out_pose);
|
||||
}
|
||||
|
||||
/*!
|
||||
* Helper function for @ref xrt_device::compute_distortion.
|
||||
*
|
||||
* @public @memberof xrt_device
|
||||
*/
|
||||
static inline void
|
||||
xrt_device_compute_distortion(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result)
|
||||
{
|
||||
xdev->compute_distortion(xdev, view, u, v, result);
|
||||
}
|
||||
|
||||
/*!
|
||||
* Helper function for @ref xrt_device::destroy.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue