diff options
author | emersion <contact@emersion.fr> | 2018-07-12 23:35:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-12 23:35:33 +0100 |
commit | c4915d149289683b6a3b8c836ba5591a8973baba (patch) | |
tree | 84e3a2b6d35b5b7c4967a34c011afb8782a9da60 /include/wlr/render/wlr_texture.h | |
parent | d8bbdf3bd5edce03c550bb0982ac997392ac5711 (diff) |
render: add wlr_texture_is_opaque
Diffstat (limited to 'include/wlr/render/wlr_texture.h')
-rw-r--r-- | include/wlr/render/wlr_texture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h index 785f4fc6..9370fa25 100644 --- a/include/wlr/render/wlr_texture.h +++ b/include/wlr/render/wlr_texture.h @@ -41,6 +41,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. */ bool wlr_texture_write_pixels(struct wlr_texture *texture, |