aboutsummaryrefslogtreecommitdiff
path: root/include/backend/egl.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-05-10 10:37:29 -0400
committerGitHub <noreply@github.com>2017-05-10 10:37:29 -0400
commitc436e76240ab190a07afcd961ca2dd279af72968 (patch)
treeaab4f835e5341cd44b5937e0cd0dbb012c2369e8 /include/backend/egl.h
parent1aed98730194aa80b5954ae1d6370162041b56e2 (diff)
parent42878b45a1dba582feb5ec75762d66ede51fdc98 (diff)
Merge pull request #2 from ascent12/master
DRM backend + Session interface + EGL
Diffstat (limited to 'include/backend/egl.h')
-rw-r--r--include/backend/egl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/backend/egl.h b/include/backend/egl.h
new file mode 100644
index 00000000..8cef36b7
--- /dev/null
+++ b/include/backend/egl.h
@@ -0,0 +1,17 @@
+#ifndef WLR_BACKEND_EGL_H
+#define WLR_BACKEND_EGL_H
+
+#include <EGL/egl.h>
+#include <stdbool.h>
+
+struct wlr_egl {
+ EGLDisplay display;
+ EGLConfig config;
+ EGLContext context;
+};
+
+bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *display);
+void wlr_egl_free(struct wlr_egl *egl);
+EGLSurface wlr_egl_create_surface(struct wlr_egl *egl, void *window);
+
+#endif