aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-07-28 16:56:23 +0200
committerSimon Ser <contact@emersion.fr>2020-11-15 22:48:42 +0100
commit6136fe87d186dc66503d7acb36b5c7c81e808788 (patch)
tree1e26b19cc074a4b8cea1e113c2414f11304d41b4 /include/render
parentc88c54fb385a9fe29f79db2ece3e8ebba0edd0a3 (diff)
render/gles2: implement wlr_renderer_bind_buffer
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index a64aa77c..2eff0aa5 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -72,9 +72,24 @@ struct wlr_gles2_renderer {
struct wlr_gles2_tex_shader tex_ext;
} shaders;
+ struct wl_list buffers; // wlr_gles2_buffer.link
+
+ struct wlr_gles2_buffer *current_buffer;
uint32_t viewport_width, viewport_height;
};
+struct wlr_gles2_buffer {
+ struct wlr_buffer *buffer;
+ struct wlr_gles2_renderer *renderer;
+ struct wl_list link; // wlr_gles2_renderer.buffers
+
+ EGLImageKHR image;
+ GLuint rbo;
+ GLuint fbo;
+
+ struct wl_listener buffer_destroy;
+};
+
struct wlr_gles2_texture {
struct wlr_texture wlr_texture;
struct wlr_gles2_renderer *renderer;