xrt_gfx_xlib.h 944 Bytes
Newer Older
Jakob Bornecrantz's avatar
Jakob Bornecrantz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
 * @file
 * @brief  Header defining a XRT graphics provider.
 * @author Jakob Bornecrantz <jakob@collabora.com>
 * @ingroup xrt_iface
 */

#pragma once

#include "xrt/xrt_device.h"
#include "xrt/xrt_compositor.h"

#ifdef __cplusplus
extern "C" {
#endif


20
typedef struct _XDisplay Display;
21
22
23
typedef void *GLXFBConfig;
typedef void *GLXDrawable;
typedef void *GLXContext;
24
struct time_state;
Jakob Bornecrantz's avatar
Jakob Bornecrantz committed
25
26
27
28

/*!
 * @ingroup xrt_iface
 */
29
30
31
32
struct xrt_compositor_gl *
xrt_gfx_provider_create_gl_xlib(struct xrt_device *xdev,
                                struct time_state *timekeeping,
                                Display *xDisplay,
Jakob Bornecrantz's avatar
Jakob Bornecrantz committed
33
34
35
36
37
38
39
40
41
                                uint32_t visualid,
                                GLXFBConfig glxFBConfig,
                                GLXDrawable glxDrawable,
                                GLXContext glxContext);


#ifdef __cplusplus
}
#endif