aboutsummaryrefslogtreecommitdiff
path: root/include/render/wlr_renderer.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-14 12:16:51 +0100
committerSimon Ser <contact@emersion.fr>2021-01-14 12:16:51 +0100
commit5642b880c39a71666d9f76d4606e2e227e2030a2 (patch)
treeb1f4071be1158f36c2abf939efc15824b1144f05 /include/render/wlr_renderer.h
parent02a086599c069768987bc9c6d9a8f79b6bfd8811 (diff)
render: document wlr_renderer_bind_buffer
Diffstat (limited to 'include/render/wlr_renderer.h')
-rw-r--r--include/render/wlr_renderer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h
index 8e113ac8..9e41f86f 100644
--- a/include/render/wlr_renderer.h
+++ b/include/render/wlr_renderer.h
@@ -3,6 +3,13 @@
#include <wlr/render/wlr_renderer.h>
+/**
+ * Bind a buffer to the renderer.
+ *
+ * All subsequent rendering operations will operate on the supplied buffer.
+ * After rendering operations are done, the caller must unbind a buffer by
+ * calling wlr_renderer_bind_buffer with a NULL buffer.
+ */
bool wlr_renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer);
/**
* Get the DMA-BUF formats supporting rendering usage. Buffers allocated with