Monado OpenXR Runtime
xrt_gfx_xlib.h
Go to the documentation of this file.
1 // Copyright 2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Header defining a XRT graphics provider.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup xrt_iface
8  */
9 
10 #pragma once
11 
12 #include "xrt/xrt_device.h"
13 #include "xrt/xrt_compositor.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
20 typedef struct _XDisplay Display;
21 typedef void *GLXFBConfig;
22 typedef void *GLXDrawable;
23 typedef void *GLXContext;
24 struct time_state;
25 
26 /*!
27  * @ingroup xrt_iface
28  */
29 struct xrt_compositor_gl *
30 xrt_gfx_provider_create_gl_xlib(struct xrt_compositor_fd *xcfd,
31  Display *xDisplay,
32  uint32_t visualid,
33  GLXFBConfig glxFBConfig,
34  GLXDrawable glxDrawable,
35  GLXContext glxContext);
36 
37 
38 #ifdef __cplusplus
39 }
40 #endif
Main compositor.
Definition: xrt_compositor.h:474
Header defining a xrt HMD device.
Definition: xrt_compositor.h:371
Time-keeping state structure.
Definition: u_time.cpp:46
Header defining a XRT graphics provider.