mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
wlr_scene: Add notes about wlr_scene_rect taking premultiplied colors
This commit is contained in:
parent
c1ce983826
commit
ebab992b44
@ -404,6 +404,8 @@ struct wlr_scene_surface *wlr_scene_surface_try_from_buffer(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a node displaying a solid-colored rectangle to the scene-graph.
|
* Add a node displaying a solid-colored rectangle to the scene-graph.
|
||||||
|
*
|
||||||
|
* The color argument must be a premultiplied color value.
|
||||||
*/
|
*/
|
||||||
struct wlr_scene_rect *wlr_scene_rect_create(struct wlr_scene_tree *parent,
|
struct wlr_scene_rect *wlr_scene_rect_create(struct wlr_scene_tree *parent,
|
||||||
int width, int height, const float color[static 4]);
|
int width, int height, const float color[static 4]);
|
||||||
@ -415,6 +417,8 @@ void wlr_scene_rect_set_size(struct wlr_scene_rect *rect, int width, int height)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Change the color of an existing rectangle node.
|
* Change the color of an existing rectangle node.
|
||||||
|
*
|
||||||
|
* The color argument must be a premultiplied color value.
|
||||||
*/
|
*/
|
||||||
void wlr_scene_rect_set_color(struct wlr_scene_rect *rect, const float color[static 4]);
|
void wlr_scene_rect_set_color(struct wlr_scene_rect *rect, const float color[static 4]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user