summaryrefslogtreecommitdiff
path: root/src/egl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl.h')
-rw-r--r--src/egl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/egl.h b/src/egl.h
index f97bd22..a1856b2 100644
--- a/src/egl.h
+++ b/src/egl.h
@@ -1,9 +1,9 @@
#ifndef EGL_H
#define EGL_H
+#include <wayland-egl.h>
#include <epoxy/egl.h>
-struct client_state;
struct egl {
EGLNativeWindowType window;
EGLDisplay display;
@@ -11,7 +11,10 @@ struct egl {
EGLSurface surface;
};
-void egl_create_window(struct client_state *state);
-void egl_create_context(struct client_state *state);
+void egl_create_window(struct egl *egl, struct wl_surface *wl_surface, uint32_t width, uint32_t height);
+void egl_create_context(struct egl *egl, struct wl_display *wl_display);
+void egl_log_error(const char *msg);
+void egl_make_current(struct egl *egl);
+void egl_swap_buffers(struct egl *egl);
#endif /* EGL_H */