Monado OpenXR Runtime
svr_interface.h
Go to the documentation of this file.
1// Copyright 2022, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief SimulaVR driver interface.
6 * @author Moses Turner <moses@collabora.com>
7 * @ingroup drv_svr
8 */
9
10#pragma once
11
12#include "xrt/xrt_defines.h"
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18{
19 float k1;
20 float k3;
21 float k5;
22 float k7;
23 float k9;
24};
25
27{
28 float half_fov;
29 struct xrt_vec2 display_size_mm;
30
31 struct svr_display_distortion_polynomial_values red, green, blue;
32};
33
35{
36 struct svr_one_display_distortion views[2]; // left, right
37};
38
39// Doesn't take possession of *distortion - feel free to free it after.
40struct xrt_device *
42
43
44
45#ifdef __cplusplus
46}
47#endif
Definition: svr_interface.h:18
Definition: svr_interface.h:27
Definition: svr_interface.h:35
A single HMD or input device.
Definition: xrt_device.h:230
A 2 element vector with single floats.
Definition: xrt_defines.h:250
struct xrt_device * svr_hmd_create(struct svr_two_displays_distortion *distortion)
Definition: svr_hmd.c:214
Common defines and enums for XRT.