diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-08 10:06:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 10:06:41 -0400 |
commit | 9e1ff2dce9eded87673c8cd7eeb7e31a421f7a22 (patch) | |
tree | 4d97bb0ddb8475b992c846f74d39ff8ee3109801 /include/wlr/render.h | |
parent | 1908d88fab23660e863928d8fc874bad4593b087 (diff) | |
parent | 0ce313530446b801302850f03c4a8d8c20cfd782 (diff) |
Merge pull request #140 from emersion/screenshooter
Add screenshooter
Diffstat (limited to 'include/wlr/render.h')
-rw-r--r-- | include/wlr/render.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h index 2fbfb476..5027064d 100644 --- a/include/wlr/render.h +++ b/include/wlr/render.h @@ -30,27 +30,32 @@ struct wlr_texture *wlr_render_texture_create(struct wlr_renderer *r); * This will render the texture at <123, 321>. */ bool wlr_render_with_matrix(struct wlr_renderer *r, - struct wlr_texture *texture, const float (*matrix)[16]); + struct wlr_texture *texture, const float (*matrix)[16]); /** * Renders a solid quad in the specified color. */ void wlr_render_colored_quad(struct wlr_renderer *r, - const float (*color)[4], const float (*matrix)[16]); + const float (*color)[4], const float (*matrix)[16]); /** * Renders a solid ellipse in the specified color. */ void wlr_render_colored_ellipse(struct wlr_renderer *r, - const float (*color)[4], const float (*matrix)[16]); + const float (*color)[4], const float (*matrix)[16]); /** * Returns a list of pixel formats supported by this renderer. */ const enum wl_shm_format *wlr_renderer_get_formats( - struct wlr_renderer *r, size_t *len); + struct wlr_renderer *r, size_t *len); /** * Returns true if this wl_buffer is a DRM buffer. */ bool wlr_renderer_buffer_is_drm(struct wlr_renderer *renderer, - struct wl_resource *buffer); + struct wl_resource *buffer); +/** + * Reads pixels and stores them in out_data as ARGB8888. + */ +void wlr_renderer_read_pixels(struct wlr_renderer *r, int x, int y, + int width, int height, void *out_data); /** * Destroys this wlr_renderer. Textures must be destroyed separately. */ |