Implement shm buffer surface attach interface

Implement surface_attach method. This is called when a client attaches an shm
buffer with wl_surface_attach().

Implement the GLES2 interface for attaching shm buffers. This creates an opengl
texture with the shm buffer contents for the surface.

This commit also includes some working code to render the surfaces onto the
screen for demonstration purposes.
This commit is contained in:
Tony Crisci 2017-08-03 14:20:51 -04:00
parent 555914a13b
commit 6610aa7ca7
4 changed files with 49 additions and 4 deletions

View file

@ -7,6 +7,7 @@ struct wl_compositor_state {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wlr_renderer *renderer;
struct wl_list surfaces;
};
void wl_compositor_init(struct wl_display *display,