mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-05 04:06:11 -05:00
render: add support for clearing render passes
introduces a new `wlr_render_pass_clear` function, allowing render passes to be cleared with a solid color.
This commit is contained in:
parent
7cb4e30bfd
commit
eeecb382cc
8 changed files with 120 additions and 8 deletions
|
|
@ -62,6 +62,8 @@ struct wlr_render_pass_impl {
|
|||
/* Implementers are also guaranteed that options->box is nonempty */
|
||||
void (*add_rect)(struct wlr_render_pass *pass,
|
||||
const struct wlr_render_rect_options *options);
|
||||
void (*clear)(struct wlr_render_pass *pass,
|
||||
const struct wlr_render_clear_options *options);
|
||||
};
|
||||
|
||||
struct wlr_render_timer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue