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;
24  const char *proc);
25 struct time_state;
26 
27 /*!
28  * @ingroup xrt_iface
29  */
30 struct xrt_compositor_gl *
32  EGLDisplay display,
33  EGLConfig config,
34  EGLContext context,
35  PFNEGLGETPROCADDRESSPROC getProcAddress);
36 
37 #ifdef __cplusplus
38 }
39 #endif
void * EGLContext
Definition: xrt_gfx_egl.h:21
Main compositor.
Definition: xrt_compositor.h:527
Header defining a xrt HMD device.
void * EGLDisplay
Definition: xrt_gfx_egl.h:19
Definition: xrt_compositor.h:424
void(* __eglMustCastToProperFunctionPointerType)(void)
Definition: xrt_gfx_egl.h:22
Time-keeping state structure.
Definition: u_time.cpp:46
Header defining a XRT graphics provider.
void * EGLConfig
Definition: xrt_gfx_egl.h:20
__eglMustCastToProperFunctionPointerType(* PFNEGLGETPROCADDRESSPROC)(const char *proc)
Definition: xrt_gfx_egl.h:23
struct xrt_compositor_gl * xrt_gfx_provider_create_gl_egl(struct xrt_compositor_fd *xcfd, EGLDisplay display, EGLConfig config, EGLContext context, PFNEGLGETPROCADDRESSPROC getProcAddress)
Definition: comp_egl_glue.c:39