mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-26 06:46:56 -04:00
color mgmt: bug fixes
This commit is contained in:
parent
10bf68b928
commit
1c0643d800
8 changed files with 30 additions and 11 deletions
|
|
@ -32,6 +32,7 @@ struct wlr_renderer_impl {
|
|||
void (*end)(struct wlr_renderer *renderer);
|
||||
void (*clear)(struct wlr_renderer *renderer, const float color[static 4]);
|
||||
void (*scissor)(struct wlr_renderer *renderer, struct wlr_box *box);
|
||||
void (*color_config)(struct wlr_renderer *renderer, struct wlr_color_config *color);
|
||||
bool (*render_subtexture_with_matrix)(struct wlr_renderer *renderer,
|
||||
struct wlr_texture *texture, const struct wlr_fbox *box,
|
||||
const float matrix[static 9], float alpha);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ struct wlr_drm_format_set;
|
|||
|
||||
struct wlr_renderer {
|
||||
const struct wlr_renderer_impl *impl;
|
||||
struct wlr_color_config *color;
|
||||
|
||||
bool rendering;
|
||||
|
||||
|
|
@ -45,6 +44,10 @@ void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]);
|
|||
* box.
|
||||
*/
|
||||
void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box);
|
||||
/**
|
||||
* Define an output color config for future renderering functions.
|
||||
*/
|
||||
void wlr_renderer_color_config(struct wlr_renderer *r, struct wlr_color_config *color);
|
||||
/**
|
||||
* Renders the requested texture.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue