Monado OpenXR Runtime
xrt_gfx_egl.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 Drew DeVault <sir@cmpwn.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 typedef void *EGLDisplay;
20 typedef void *EGLConfig;
21 typedef void *EGLContext;
22 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
23 typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(
24  const char *proc);
25 struct time_state;
26 
27 /*!
28  * @ingroup xrt_iface
29  */
30 struct xrt_compositor_gl *
31 xrt_gfx_provider_create_gl_egl(struct xrt_compositor_fd *xcfd,
32  EGLDisplay display,
33  EGLConfig config,
34  EGLContext context,
35  PFNEGLGETPROCADDRESSPROC getProcAddress);
36 
37 #ifdef __cplusplus
38 }
39 #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.