aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-30 10:00:58 +0100
committeremersion <contact@emersion.fr>2018-01-30 10:00:58 +0100
commitd0961a02af36aee2b051ac6775c928a1f64ebc70 (patch)
treefea4ff2c44ae14c73049984ede61b3d33046c861 /include/wlr
parent51c22d39a4a1a3c4ecfe39ee3df90ba7e66633af (diff)
render: add wlr_renderer_scissor docs
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h
index 46ee0fa3..c277ab17 100644
--- a/include/wlr/render.h
+++ b/include/wlr/render.h
@@ -15,6 +15,11 @@ void wlr_renderer_begin(struct wlr_renderer *r, struct wlr_output *output);
void wlr_renderer_end(struct wlr_renderer *r);
void wlr_renderer_clear(struct wlr_renderer *r, float red, float green,
float blue, float alpha);
+/**
+ * Defines a scissor box. Only pixels that lie within the scissor box can be
+ * modified by drawing functions. Providing a NULL `box` disables the scissor
+ * box.
+ */
void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box);
/**
* Requests a texture handle from this renderer.