render: add simple functions to render rectangles and ellipses

This commit is contained in:
emersion 2018-03-26 12:41:51 -04:00
parent bcb74c2c78
commit 793c3b3047
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 61 additions and 30 deletions

View file

@ -27,9 +27,9 @@ struct wlr_renderer_impl {
bool (*render_texture_with_matrix)(struct wlr_renderer *renderer,
struct wlr_texture *texture, const float matrix[static 9],
float alpha);
void (*render_quad)(struct wlr_renderer *renderer,
void (*render_quad_with_matrix)(struct wlr_renderer *renderer,
const float color[static 4], const float matrix[static 9]);
void (*render_ellipse)(struct wlr_renderer *renderer,
void (*render_ellipse_with_matrix)(struct wlr_renderer *renderer,
const float color[static 4], const float matrix[static 9]);
const enum wl_shm_format *(*formats)(
struct wlr_renderer *renderer, size_t *len);