aboutsummaryrefslogtreecommitdiff
path: root/examples/egl_common.h
diff options
context:
space:
mode:
authorBrandon Dowdy <berylline@users.noreply.github.com>2021-01-28 23:13:53 +0000
committerSimon Ser <contact@emersion.fr>2021-01-29 10:03:24 +0100
commit34e7f69d6942bd37361f27c5894edc9f522d49e1 (patch)
treee1f722c0114453371711acf471afc2c38e1d2d88 /examples/egl_common.h
parent50b9921642af61487e2d0f425695342bf7c4ad78 (diff)
examples: remove dependency on wlr_egl from clients
The specified clients in this commit used to rely on wlr_egl and some of its related functions in order to render surfaces. This is no longer the case as of this commit.
Diffstat (limited to 'examples/egl_common.h')
-rw-r--r--examples/egl_common.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/egl_common.h b/examples/egl_common.h
new file mode 100644
index 00000000..f12c05be
--- /dev/null
+++ b/examples/egl_common.h
@@ -0,0 +1,19 @@
+#ifndef _EGL_COMMON_H
+#define _EGL_COMMON_H
+#endif
+
+#include <stdbool.h>
+#include <wayland-client.h>
+
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+
+extern EGLDisplay egl_display;
+extern EGLConfig egl_config;
+extern EGLContext egl_context;
+
+extern PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;
+
+bool egl_init(struct wl_display *display);
+
+void egl_finish(void);