aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-11-07 13:38:45 -0500
committerSimon Ser <contact@emersion.fr>2019-11-11 19:10:10 +0100
commit4c9423278a66ddb9cb03cee33473b1332150230f (patch)
tree5a467c161fcbc0bdccf948ed53b6b7c2e224db3c /include
parentaa9ea95e1fffde31be72ffaf204a3aaf2893858e (diff)
Introduce wlr_renderer_get_egl
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/gles2.h2
-rw-r--r--include/wlr/render/wlr_renderer.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h
index b8c9a41a..c53353d3 100644
--- a/include/wlr/render/gles2.h
+++ b/include/wlr/render/gles2.h
@@ -17,6 +17,8 @@ struct wlr_egl;
struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl);
+struct wlr_egl *wlr_gles2_renderer_get_egl(struct wlr_renderer *renderer);
+
struct wlr_texture *wlr_gles2_texture_from_pixels(struct wlr_egl *egl,
enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width, uint32_t height,
const void *data);
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 33f96b68..522ce738 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -109,6 +109,7 @@ bool wlr_renderer_format_supported(struct wlr_renderer *r,
enum wl_shm_format fmt);
void wlr_renderer_init_wl_display(struct wlr_renderer *r,
struct wl_display *wl_display);
+
/**
* Destroys this wlr_renderer. Textures must be destroyed separately.
*/