mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
render: add wlr_renderer_clear and wlr_renderer_scissor
This commit is contained in:
parent
3f1c4f5be7
commit
415a2b7c56
10 changed files with 67 additions and 23 deletions
|
|
@ -23,6 +23,15 @@ void wlr_renderer_end(struct wlr_renderer *r) {
|
|||
r->impl->end(r);
|
||||
}
|
||||
|
||||
void wlr_renderer_clear(struct wlr_renderer *r, float red, float green,
|
||||
float blue, float alpha) {
|
||||
r->impl->clear(r, red, green, blue, alpha);
|
||||
}
|
||||
|
||||
void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box) {
|
||||
r->impl->scissor(r, box);
|
||||
}
|
||||
|
||||
struct wlr_texture *wlr_render_texture_create(struct wlr_renderer *r) {
|
||||
return r->impl->texture_create(r);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue