#ifndef H_STATE #define H_STATE #include #include #include typedef struct { struct wl_display *display; EGLDisplay egl_display; struct wl_egl_window *egl_window; EGLSurface egl_surface; bool ready; struct wl_compositor *compositor; struct xdg_wm_base *wm_base; struct wl_surface *w_surface; struct xdg_surface *x_surface; struct xdg_toplevel *toplevel; struct wl_shm *shm; struct wl_callback *frame_callback; GLuint program; } State; #endif // H_STATE