refactor: view rendering refactor

This commit is contained in:
Will McKinnon 2023-03-18 01:48:26 -04:00
parent 1a10c61165
commit ce0af88ac3
4 changed files with 166 additions and 28 deletions

View file

@ -107,6 +107,9 @@ struct fx_renderer {
struct gles2_tex_shader tex_rgba;
struct gles2_tex_shader tex_rgbx;
struct gles2_tex_shader tex_ext;
struct gles2_tex_shader tex_decorated_rgba;
struct gles2_tex_shader tex_decorated_rgbx;
struct gles2_tex_shader tex_decorated_ext;
} shaders;
};
@ -120,12 +123,15 @@ 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,
bool fx_render_window(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],
struct decoration_data deco_data);
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);
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], struct decoration_data deco_data);
const float matrix[static 9], float alpha);
void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box,
const float color[static 4], const float projection[static 9]);