| 1 | // Copyright (C) 2024 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QOPENXRPLATFORM_H |
| 5 | #define QOPENXRPLATFORM_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | |
| 19 | #ifdef XR_USE_GRAPHICS_API_VULKAN |
| 20 | # include <QtGui/QVulkanInstance> |
| 21 | #endif |
| 22 | |
| 23 | #ifdef XR_USE_GRAPHICS_API_D3D11 |
| 24 | # include <d3d11.h> |
| 25 | #endif |
| 26 | |
| 27 | #ifdef XR_USE_GRAPHICS_API_D3D12 |
| 28 | # include <d3d12.h> |
| 29 | #endif |
| 30 | |
| 31 | #ifdef XR_USE_GRAPHICS_API_OPENGL |
| 32 | # include <QtGui/QOpenGLContext> |
| 33 | #endif |
| 34 | |
| 35 | |
| 36 | #ifdef XR_USE_GRAPHICS_API_OPENGL_ES |
| 37 | # include <QtGui/QOpenGLContext> |
| 38 | # include <EGL/egl.h> |
| 39 | #endif |
| 40 | |
| 41 | #ifdef XR_USE_PLATFORM_ANDROID |
| 42 | # include <QtCore/qnativeinterface.h> |
| 43 | # include <QtCore/QJniEnvironment> |
| 44 | #endif |
| 45 | |
| 46 | #ifdef XR_USE_PLATFORM_XCB |
| 47 | # include <xcb/xcb.h> |
| 48 | # include <xcb/glx.h> |
| 49 | #endif |
| 50 | |
| 51 | #include <openxr/openxr_platform.h> |
| 52 | |
| 53 | #endif // QOPENXRPLATFORM_H |
| 54 | |