summaryrefslogtreecommitdiff
path: root/src/egl.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-26 17:00:14 +0100
committerPhil Jones <philj56@gmail.com>2021-10-26 17:00:32 +0100
commit7a640bd0622caf8a3354934d0400e8c361cdeee3 (patch)
tree37cb644e500af10acd86e3395941ed3b50828040 /src/egl.h
parentbe50c08dabd7bdddaa47e8807c41f3c5b9a80be8 (diff)
Add EGL setup (unused for now).
Diffstat (limited to 'src/egl.h')
-rw-r--r--src/egl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/egl.h b/src/egl.h
new file mode 100644
index 0000000..f97bd22
--- /dev/null
+++ b/src/egl.h
@@ -0,0 +1,17 @@
+#ifndef EGL_H
+#define EGL_H
+
+#include <epoxy/egl.h>
+
+struct client_state;
+struct egl {
+ EGLNativeWindowType window;
+ EGLDisplay display;
+ EGLContext context;
+ EGLSurface surface;
+};
+
+void egl_create_window(struct client_state *state);
+void egl_create_context(struct client_state *state);
+
+#endif /* EGL_H */