mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04: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
|
|
@ -44,6 +44,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
|
||||
wlr_output_make_current(wlr_output, NULL);
|
||||
wlr_renderer_begin(sample->renderer, wlr_output);
|
||||
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
|
||||
|
||||
float matrix[16];
|
||||
for (int y = -128 + (int)odata->y_offs; y < height; y += 128) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue