Monado OpenXR Runtime
oh_device.h
Go to the documentation of this file.
1// Copyright 2019-2023, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface to OpenHMD driver code.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @ingroup drv_ohmd
8 */
9
10#pragma once
11
12#include "xrt/xrt_device.h"
13#include "math/m_api.h"
14
15#include "openhmd.h"
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22int
23oh_device_create(ohmd_context *ctx, bool no_hmds, struct xrt_device **out_xdevs);
24
25#define OHMD_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->log_level, __VA_ARGS__)
26#define OHMD_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->log_level, __VA_ARGS__)
27#define OHMD_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->log_level, __VA_ARGS__)
28#define OHMD_WARN(d, ...) U_LOG_XDEV_IFL_W(&d->base, d->log_level, __VA_ARGS__)
29#define OHMD_ERROR(d, ...) U_LOG_XDEV_IFL_E(&d->base, d->log_level, __VA_ARGS__)
30
31
32#ifdef __cplusplus
33}
34#endif
C interface to math library.
int oh_device_create(ohmd_context *ctx, bool no_hmds, struct xrt_device **out_xdevs)
Definition: oh_device.c:1174
A single HMD or input device.
Definition: xrt_device.h:241
Header defining an xrt display or controller device.