Monado OpenXR Runtime
xrt_openxr_includes.h
Go to the documentation of this file.
1 // Copyright 2018-2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Include all of the openxr headers in one place.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup xrt_iface
8  */
9 
10 #pragma once
11 
12 //! @todo Move these to the build system instead.
13 #define XR_USE_GRAPHICS_API_VULKAN
14 #define XR_USE_TIMESPEC 1
15 
16 #ifdef XR_USE_PLATFORM_XLIB
17 typedef struct _XDisplay Display;
18 typedef void *GLXFBConfig;
19 typedef void *GLXDrawable;
20 typedef void *GLXContext;
21 #endif
22 
23 #ifdef XR_USE_PLATFORM_EGL
24 typedef void *EGLDisplay;
25 typedef void *EGLContext;
26 typedef void *EGLConfig;
27 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
28 typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(
29  const char *procname);
30 #endif
31 
32 #ifdef XR_USE_TIMESPEC
33 #include <time.h>
34 #endif
35 
36 #include "openxr_includes/openxr.h"
37 #include "openxr_includes/openxr_platform.h"
38 #include "openxr_includes/loader_interfaces.h"