From 3bf156c9d9598acbee38c49d17cdb7d77e79d520 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 28 Oct 2021 13:07:25 +0100 Subject: Add basic HiDPI scaling and a subsurface. --- src/egl.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/egl.h') 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 #include -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 */ -- cgit v1.2.3