mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add colored quad and ellipse rendering primitives
This commit is contained in:
parent
4a9966b1a4
commit
2443a070e7
8 changed files with 192 additions and 20 deletions
|
|
@ -31,3 +31,13 @@ bool wlr_render_with_matrix(struct wlr_renderer *r,
|
|||
struct wlr_surface *surface, const float (*matrix)[16]) {
|
||||
return r->impl->render_with_matrix(r->state, surface, matrix);
|
||||
}
|
||||
|
||||
void wlr_render_colored_quad(struct wlr_renderer *r,
|
||||
const float (*color)[4], const float (*matrix)[16]) {
|
||||
r->impl->render_quad(r->state, color, matrix);
|
||||
}
|
||||
|
||||
void wlr_render_colored_ellipse(struct wlr_renderer *r,
|
||||
const float (*color)[4], const float (*matrix)[16]) {
|
||||
r->impl->render_ellipse(r->state, color, matrix);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue