mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render: drop support for ellipses
For anything more complicated than quads, compositors can easily ship their own shaders. Closes: https://github.com/swaywm/wlroots/issues/2759
This commit is contained in:
parent
9ecfa4343a
commit
a109a80dca
6 changed files with 0 additions and 108 deletions
|
|
@ -20,7 +20,6 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
|
|||
assert(impl->scissor);
|
||||
assert(impl->render_subtexture_with_matrix);
|
||||
assert(impl->render_quad_with_matrix);
|
||||
assert(impl->render_ellipse_with_matrix);
|
||||
assert(impl->get_shm_texture_formats);
|
||||
assert(impl->texture_from_pixels);
|
||||
renderer->impl = impl;
|
||||
|
|
@ -133,25 +132,6 @@ void wlr_render_quad_with_matrix(struct wlr_renderer *r,
|
|||
r->impl->render_quad_with_matrix(r, color, matrix);
|
||||
}
|
||||
|
||||
void wlr_render_ellipse(struct wlr_renderer *r, const struct wlr_box *box,
|
||||
const float color[static 4], const float projection[static 9]) {
|
||||
if (box->width == 0 || box->height == 0) {
|
||||
return;
|
||||
}
|
||||
assert(box->width > 0 && box->height > 0);
|
||||
float matrix[9];
|
||||
wlr_matrix_project_box(matrix, box, WL_OUTPUT_TRANSFORM_NORMAL, 0,
|
||||
projection);
|
||||
|
||||
wlr_render_ellipse_with_matrix(r, color, matrix);
|
||||
}
|
||||
|
||||
void wlr_render_ellipse_with_matrix(struct wlr_renderer *r,
|
||||
const float color[static 4], const float matrix[static 9]) {
|
||||
assert(r->rendering);
|
||||
r->impl->render_ellipse_with_matrix(r, color, matrix);
|
||||
}
|
||||
|
||||
const uint32_t *wlr_renderer_get_shm_texture_formats(struct wlr_renderer *r,
|
||||
size_t *len) {
|
||||
return r->impl->get_shm_texture_formats(r, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue