aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/wlr_renderer.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-22 01:06:25 +0100
committerSimon Ser <contact@emersion.fr>2023-11-22 11:43:05 +0100
commit41494244dfa017eb6952f16ce8716988198c78ad (patch)
treea254f6dc29317bc7c4e54ec261fa3297033356c4 /include/wlr/render/wlr_renderer.h
parentb2aac3390ded5155a0dcc67033c61dbdbae8f62f (diff)
render: drop legacy rendering API
Diffstat (limited to 'include/wlr/render/wlr_renderer.h')
-rw-r--r--include/wlr/render/wlr_renderer.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 450d61e2..282ee4bb 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -72,43 +72,7 @@ bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r,
* End a render pass.
*/
void wlr_renderer_end(struct wlr_renderer *r);
-/**
- * Clear the viewport with the provided color.
- */
-void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]);
-/**
- * Defines a scissor box. Only pixels that lie within the scissor box can be
- * modified by drawing functions. Providing a NULL `box` disables the scissor
- * box.
- */
-void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box);
-/**
- * Renders the requested texture.
- */
-bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture,
- const float projection[static 9], int x, int y, float alpha);
-/**
- * Renders the requested texture using the provided matrix.
- */
-bool wlr_render_texture_with_matrix(struct wlr_renderer *r,
- struct wlr_texture *texture, const float matrix[static 9], float alpha);
-/**
- * Renders the requested texture using the provided matrix, after cropping it
- * to the provided rectangle.
- */
-bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r,
- struct wlr_texture *texture, const struct wlr_fbox *box,
- const float matrix[static 9], float alpha);
-/**
- * Renders a solid rectangle in the specified color.
- */
-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]);
+
/**
* Get the shared-memory formats supporting import usage. Buffers allocated
* with a format from this list may be imported via wlr_texture_from_pixels().