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 *
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:527
struct xrt_compositor_gl * xrt_gfx_provider_create_gl_xlib(struct xrt_compositor_fd *xcfd, Display *xDisplay, uint32_t visualid, GLXFBConfig glxFBConfig, GLXDrawable glxDrawable, GLXContext glxContext)
Definition: comp_gl_xlib_glue.c:19
Header defining a xrt HMD device.
void * GLXFBConfig
Definition: xrt_gfx_xlib.h:21
Definition: xrt_compositor.h:424
Time-keeping state structure.
Definition: u_time.cpp:46
Header defining a XRT graphics provider.
void * GLXContext
Definition: xrt_gfx_xlib.h:23
void * GLXDrawable
Definition: xrt_gfx_xlib.h:22
struct _XDisplay Display
Definition: xrt_gfx_xlib.h:20