diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-26 16:27:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 16:27:37 -0400 |
commit | b66ab811a675b0ceff72943dc1c0ed1ad2bd46ed (patch) | |
tree | ee25807dec18f6f79dfbe262567cb2259d66119c /include/wlr/render/wlr_renderer.h | |
parent | bcb74c2c781405149af99f66ce61b1a8f63771fd (diff) | |
parent | 793c3b30473bcad488eae9266b67ccfdf3106231 (diff) |
Merge pull request #750 from emersion/renderer-simple-interface
render: add simple functions to render rectangles and ellipses
Diffstat (limited to 'include/wlr/render/wlr_renderer.h')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 6f0d2ecc..5c78089e 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -36,14 +36,24 @@ bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, bool wlr_render_texture_with_matrix(struct wlr_renderer *r, struct wlr_texture *texture, const float matrix[static 9], float alpha); /** - * Renders a solid quad in the specified color. + * Renders a solid rectangle in the specified color. */ -void wlr_render_colored_quad(struct wlr_renderer *r, +void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, + const float color[static 4], const float projection[static 9]); +/** + * Renders a solid quadrangle in the specified color with the specified matrix. + */ +void wlr_render_quad_with_matrix(struct wlr_renderer *r, const float color[static 4], const float matrix[static 9]); /** * Renders a solid ellipse in the specified color. */ -void wlr_render_colored_ellipse(struct wlr_renderer *r, +void wlr_render_ellipse(struct wlr_renderer *r, const struct wlr_box *box, + const float color[static 4], const float projection[static 9]); +/** + * Renders a solid ellipse in the specified color with the specified matrix. + */ +void wlr_render_ellipse_with_matrix(struct wlr_renderer *r, const float color[static 4], const float matrix[static 9]); /** * Returns a list of pixel formats supported by this renderer. |