mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
wlr_raster: Introduce wlr_raster_from_pixels
This commit is contained in:
parent
31bc571e98
commit
bc53c79048
2 changed files with 26 additions and 0 deletions
|
|
@ -75,4 +75,10 @@ void wlr_raster_attach(struct wlr_raster *raster, struct wlr_texture *texture);
|
|||
*/
|
||||
void wlr_raster_detach(struct wlr_raster *raster, struct wlr_texture *texture);
|
||||
|
||||
/**
|
||||
* Create a new raster from raw pixel data. `stride` is in bytes.
|
||||
*/
|
||||
struct wlr_raster *wlr_raster_from_pixels(uint32_t fmt, uint32_t stride,
|
||||
uint32_t width, uint32_t height, const void *data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue