mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
render/wlr_texture: put wlr_texture_from_buffer into the public API
This commit is contained in:
parent
0778151f94
commit
04d4fb536d
5 changed files with 10 additions and 18 deletions
|
|
@ -1,15 +0,0 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue