mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
wlr_texture: Introduce wlr_texture_read_pixels
This commit is contained in:
parent
a165261f7f
commit
4c6caa7c48
3 changed files with 28 additions and 0 deletions
|
|
@ -26,6 +26,15 @@ void wlr_texture_destroy(struct wlr_texture *texture) {
|
|||
}
|
||||
}
|
||||
|
||||
bool wlr_texture_read_pixels(struct wlr_texture *texture,
|
||||
const struct wlr_texture_read_pixels_options *options) {
|
||||
if (!texture->impl->read_pixels) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return texture->impl->read_pixels(texture, options);
|
||||
}
|
||||
|
||||
struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer,
|
||||
uint32_t fmt, uint32_t stride, uint32_t width, uint32_t height,
|
||||
const void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue