Monado OpenXR Runtime
ns_interface.h
Go to the documentation of this file.
1// Copyright 2019-2020, Collabora, Ltd.
2// Copyright 2020, Nova King.
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Interface to North Star driver code.
7 * @author Nova King <technobaboo@gmail.com>
8 * @ingroup drv_ns
9 */
10
11#pragma once
12#include "util/u_json.h"
13#include "xrt/xrt_device.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20/*!
21 * @defgroup drv_ns North Star driver
22 * @ingroup drv
23 *
24 * @brief Driver for the North Star HMD.
25 */
26
27/*!
28 * Creates a North Star HMD.
29 *
30 * @ingroup drv_ns
31 */
32
33struct xrt_device *
34ns_hmd_create(const cJSON *config_json);
35
36/*!
37 * @dir drivers/north_star
38 *
39 * @brief @ref drv_ns files.
40 */
41
42
43#ifdef __cplusplus
44}
45#endif
struct xrt_device * ns_hmd_create(const cJSON *config_json)
Creates a North Star HMD.
Definition: ns_hmd.c:456
A single HMD or input device.
Definition: xrt_device.h:230
Tiny JSON wrapper around cJSON header.
Header defining an xrt display or controller device.