summaryrefslogtreecommitdiff
path: root/include/sway/desktop/fx_renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/fx_renderer.h')
-rw-r--r--include/sway/desktop/fx_renderer.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h
index 5ed3bc7d..1d7e2921 100644
--- a/include/sway/desktop/fx_renderer.h
+++ b/include/sway/desktop/fx_renderer.h
@@ -8,9 +8,12 @@ struct gles2_tex_shader {
GLint proj;
GLint tex;
GLint alpha;
- GLint discardOpaque;
GLint pos_attrib;
GLint tex_attrib;
+ GLint width;
+ GLint height;
+ GLint position;
+ GLint radius;
};
struct fx_renderer {
@@ -42,13 +45,14 @@ void fx_renderer_clear(const float color[static 4]);
void fx_renderer_scissor(struct wlr_box *box);
-bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer,
- struct wlr_texture *wlr_texture, const struct wlr_fbox *box,
- const float matrix[static 9], float alpha, int radius);
+bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture,
+ const struct wlr_fbox *src_box, const struct wlr_box *dst_box, const float matrix[static 9],
+ float alpha, int radius);
-bool fx_render_texture_with_matrix(struct fx_renderer *renderer,
- struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha, int radius);
+bool fx_render_texture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture,
+ const struct wlr_box *dst_box, const float matrix[static 9], float alpha, int radius);
-void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box, const float color[static 4], const float projection[static 9]);
+void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box,
+ const float color[static 4], const float projection[static 9]);
#endif