diff options
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/wlr_texture.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/render/wlr_texture.h b/include/render/wlr_texture.h new file mode 100644 index 00000000..eb94824f --- /dev/null +++ b/include/render/wlr_texture.h @@ -0,0 +1,15 @@ +#ifndef RENDER_WLR_TEXTURE_H +#define RENDER_WLR_TEXTURE_H + +#include <wlr/render/wlr_texture.h> + +/** + * Create a new texture from a buffer. + * + * Should not be called in a rendering block like renderer_begin()/end() or + * between attaching a renderer to an output and committing it. + */ +struct wlr_texture *wlr_texture_from_buffer(struct wlr_renderer *renderer, + struct wlr_buffer *buffer); + +#endif |