diff options
Diffstat (limited to 'src/surface.h')
-rw-r--r-- | src/surface.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/surface.h b/src/surface.h index b8b132f..8abd1e1 100644 --- a/src/surface.h +++ b/src/surface.h @@ -3,21 +3,28 @@ #include <stdbool.h> #include <stdint.h> -#include "egl.h" -#include "gl.h" +#include <wayland-client.h> +#include "color.h" +#include "image.h" struct surface { - struct egl egl; - struct gl gl; 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_initialise( struct surface *surface, - struct wl_display *wl_display, + struct wl_shm *wl_shm, struct image *texture); void surface_destroy(struct surface *surface); void surface_draw( |