diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-03 14:20:51 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-04 11:41:13 -0400 |
commit | 6610aa7ca7d170c43705c86db65f7a1f8fc8681a (patch) | |
tree | 468fb40d7833194f48e88cbcdc40afc24670faeb /examples/compositor.h | |
parent | 555914a13bec2d6f9ea5c48dc9a955bd397e4ea1 (diff) |
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.
Diffstat (limited to 'examples/compositor.h')
-rw-r--r-- | examples/compositor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/compositor.h b/examples/compositor.h index 0f2716fe..b04093ca 100644 --- a/examples/compositor.h +++ b/examples/compositor.h @@ -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, |