aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-03 09:32:02 +0100
committeremersion <contact@emersion.fr>2018-02-03 09:32:02 +0100
commitddb1779f9fee28b6393ba6607852a078ed65575f (patch)
tree2a5265428c4a2af20e4a32c7cf6e830927a04ca7 /include/wlr
parent402587ed65016fa89b9fcafc8d7af27b1958dd20 (diff)
render: make wlr_renderer_clear take a float[4] for the color
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render.h3
-rw-r--r--include/wlr/render/interface.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h
index c277ab17..ccc66d36 100644
--- a/include/wlr/render.h
+++ b/include/wlr/render.h
@@ -13,8 +13,7 @@ struct wlr_renderer;
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);
+void wlr_renderer_clear(struct wlr_renderer *r, const float (*color)[4]);
/**
* 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
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 2531f33c..b8e99898 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -18,8 +18,7 @@ struct wlr_renderer {
struct wlr_renderer_impl {
void (*begin)(struct wlr_renderer *renderer, struct wlr_output *output);
void (*end)(struct wlr_renderer *renderer);
- void (*clear)(struct wlr_renderer *renderer, float red, float green,
- float blue, float alpha);
+ void (*clear)(struct wlr_renderer *renderer, const float (*color)[4]);
void (*scissor)(struct wlr_renderer *renderer, struct wlr_box *box);
struct wlr_texture *(*texture_create)(struct wlr_renderer *renderer);
bool (*render_with_matrix)(struct wlr_renderer *renderer,