Monado OpenXR Runtime
xrt_device.hpp
Go to the documentation of this file.
1
// Copyright 2019-2022, Collabora, Ltd.
2
// SPDX-License-Identifier: BSL-1.0
3
/*!
4
* @file
5
* @brief C++ helpers for xrt_device
6
* @author Rylie Pavlik <rylie.pavlik@collabora.com>
7
* @ingroup xrt_iface
8
*/
9
10
#pragma once
11
12
#include "
xrt_device.h
"
13
#include "
xrt_deleters.hpp
"
14
15
#include <memory>
16
17
namespace
xrt {
18
19
20
//! Unique-ownership smart pointer for a @ref xrt_device implementation.
21
using
unique_xrt_device
= std::unique_ptr<xrt_device, deleters::ptr_ptr_deleter<xrt_device, xrt_device_destroy>>;
22
23
}
// namespace xrt
xrt_deleters.hpp
Generic unique_ptr deleters for Monado types.
xrt_device.h
Header defining an xrt display or controller device.
xrt::unique_xrt_device
std::unique_ptr< xrt_device, deleters::ptr_ptr_deleter< xrt_device, xrt_device_destroy > > unique_xrt_device
Unique-ownership smart pointer for a xrt_device implementation.
Definition:
xrt_device.hpp:21
xrt
xrt_device.hpp
Generated by
1.9.4