#ifndef SURFACE_H #define SURFACE_H #include #include #include #include "color.h" struct surface { struct wl_surface *wl_surface; struct wl_shm_pool *wl_shm_pool; int32_t width; int32_t height; int32_t stride; int index; struct wl_buffer *buffers[2]; int shm_pool_size; int shm_pool_fd; uint8_t *shm_pool_data; bool redraw; }; void surface_init( struct surface *surface, struct wl_shm *wl_shm); void surface_destroy(struct surface *surface); void surface_draw(struct surface *surface); #endif /* SURFACE_H */