2021-01-18 05:15:36 +01:00
|
|
|
/*
|
|
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
|
|
* future consistency of this API.
|
|
|
|
*/
|
|
|
|
#ifndef WLR_USE_UNSTABLE
|
|
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WLR_RENDER_PIXMAN_H
|
|
|
|
#define WLR_RENDER_PIXMAN_H
|
|
|
|
|
2021-05-28 08:15:40 +02:00
|
|
|
#include <pixman.h>
|
2021-01-18 05:15:36 +01:00
|
|
|
#include <wlr/render/wlr_renderer.h>
|
|
|
|
|
|
|
|
struct wlr_renderer *wlr_pixman_renderer_create(void);
|
2021-05-28 07:53:24 +02:00
|
|
|
/**
|
|
|
|
* Returns the image of current buffer.
|
|
|
|
*/
|
|
|
|
pixman_image_t *wlr_pixman_renderer_get_current_image(
|
|
|
|
struct wlr_renderer *wlr_renderer);
|
2021-01-18 05:15:36 +01:00
|
|
|
|
2021-05-28 08:15:40 +02:00
|
|
|
bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer);
|
|
|
|
bool wlr_texture_is_pixman(struct wlr_texture *texture);
|
|
|
|
pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture);
|
|
|
|
|
2021-01-18 05:15:36 +01:00
|
|
|
#endif
|