From 7a640bd0622caf8a3354934d0400e8c361cdeee3 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 26 Oct 2021 17:00:14 +0100 Subject: Add EGL setup (unused for now). --- src/client.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/client.h (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h new file mode 100644 index 0000000..04d78ac --- /dev/null +++ b/src/client.h @@ -0,0 +1,34 @@ +#ifndef CLIENT_H +#define CLIENT_H + +#include +#include +#include "egl.h" + +struct client_state { + /* Globals */ + struct wl_display *wl_display; + struct wl_registry *wl_registry; + struct wl_shm *wl_shm; + struct wl_compositor *wl_compositor; + struct wl_seat *wl_seat; + struct xdg_wm_base *xdg_wm_base; + /* Objects */ + struct wl_surface *wl_surface; + struct wl_keyboard *wl_keyboard; + struct xdg_surface *xdg_surface; + struct xdg_toplevel *xdg_toplevel; + /* State */ + float offset; + uint32_t last_frame; + int width; + int height; + bool closed; + struct egl egl; + /* Keyboard state */ + struct xkb_state *xkb_state; + struct xkb_context *xkb_context; + struct xkb_keymap *xkb_keymap; +}; + +#endif /* CLIENT_H */ -- cgit v1.2.3