#ifndef SURFACE_H #define SURFACE_H #include #include #include "egl.h" #include "gl.h" struct surface { struct egl egl; struct gl gl; struct wl_surface *wl_surface; int32_t width; int32_t height; bool redraw; }; void surface_initialise( struct surface *surface, struct wl_display *wl_display, struct image *texture); void surface_destroy(struct surface *surface); void surface_draw( struct surface *surface, struct color *color, struct image *texture); #endif /* SURFACE_H */