aboutsummaryrefslogtreecommitdiff
path: root/examples/egl_common.h
diff options
context:
space:
mode:
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);