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);
29  const char *procname);
30 #endif
31 
32 #ifdef XR_USE_TIMESPEC
33 #include <time.h>
34 #endif
35 
36 #include "openxr/openxr.h"
37 #include "openxr/openxr_platform.h"
38 #include "openxr/loader_interfaces.h"
void * EGLContext
Definition: xrt_gfx_egl.h:21
void * GLXContext
Definition: xrt_openxr_includes.h:20
void * GLXFBConfig
Definition: xrt_openxr_includes.h:18
void * EGLDisplay
Definition: xrt_gfx_egl.h:19
void(* __eglMustCastToProperFunctionPointerType)(void)
Definition: xrt_gfx_egl.h:22
void * EGLConfig
Definition: xrt_gfx_egl.h:20
__eglMustCastToProperFunctionPointerType(* PFNEGLGETPROCADDRESSPROC)(const char *proc)
Definition: xrt_gfx_egl.h:23
void * GLXDrawable
Definition: xrt_openxr_includes.h:19
struct _XDisplay Display
Definition: xrt_gfx_xlib.h:20