Ocean
Loading...
Searching...
No Matches
meta/quest/openxr/OpenXR.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_META_QUEST_OPENXR_OPEN_XR_H
9#define META_OCEAN_PLATFORM_META_QUEST_OPENXR_OPEN_XR_H
10
12
14
15namespace Ocean
16{
17
18namespace Platform
19{
20
21namespace Meta
22{
23
24namespace Quest
25{
26
27namespace OpenXR
28{
29
30/**
31 * @ingroup platformmetaquest
32 * @defgroup platformmetaquestopenxr Ocean Platform Meta Quest OpenXR Library
33 * @{
34 * The Ocean Meta Quest OpenXR Library provides specific functionalities for Meta's Quest platform via OpenXR.
35 * The library is available on Meta Quest OpenXR platforms only.
36 * @}
37 */
38
39/**
40 * @namespace Ocean::Platform::Meta::Quest::OpenXR Namespace of the Platform Meta Quest OpenXR library.<p>
41 * The Namespace Ocean::Platform::Meta::Quest::OpenXR is used in the entire Ocean Platform Meta Quest OpenXR Library.
42 */
43
44// Defines OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT for dll export and import.
45#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
46 #ifdef USE_OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT
47 #define OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT __declspec(dllexport)
48 #else
49 #define OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT __declspec(dllimport)
50 #endif
51#else
52 #define OCEAN_PLATFORM_META_QUEST_OPENXR_EXPORT
53#endif
54
55/**
56 * Re-exports xrCreateObject from the base OpenXR namespace for convenience.
57 * @see Ocean::Platform::OpenXR::xrCreateObject()
58 */
60
61}
62
63}
64
65}
66
67}
68
69}
70
71#endif // META_OCEAN_PLATFORM_META_QUEST_OPENXR_OPEN_XR_H
constexpr T xrCreateObject(const XrStructureType xrStructureType)
Creates a zero-initialized OpenXR object with the given structure type.
Definition openxr/OpenXR.h:126
The namespace covering the entire Ocean framework.
Definition Accessor.h:15