mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
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:
parent
555914a13b
commit
6610aa7ca7
4 changed files with 49 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue