mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
render: add wlr_texture_is_opaque
This commit is contained in:
parent
d8bbdf3bd5
commit
c4915d1492
4 changed files with 19 additions and 0 deletions
|
|
@ -40,6 +40,11 @@ struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
|
|||
*/
|
||||
void wlr_texture_get_size(struct wlr_texture *texture, int *width, int *height);
|
||||
|
||||
/**
|
||||
* Returns true if this texture is using a fully opaque format.
|
||||
*/
|
||||
bool wlr_texture_is_opaque(struct wlr_texture *texture);
|
||||
|
||||
/**
|
||||
* Update a texture with raw pixels. The texture must be mutable.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue