diff options
author | Phil Jones <philj56@gmail.com> | 2021-10-28 13:07:25 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-10-28 13:07:47 +0100 |
commit | 3bf156c9d9598acbee38c49d17cdb7d77e79d520 (patch) | |
tree | 1566c551e1aa6bdb3a96a19c42c632d98dac8410 /src/egl.h | |
parent | 42679f7e53364e8de8de665ac7ba9b7e2dd1970b (diff) |
Add basic HiDPI scaling and a subsurface.
Diffstat (limited to 'src/egl.h')
-rw-r--r-- | src/egl.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 */ |