diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-25 08:38:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 08:38:44 -0400 |
commit | 35b31dcfb7f54c08301c4eb352325bb852b1bece (patch) | |
tree | 93d550e437722bdeabca5605ada5c0b4d41128cf /include/wlr/render | |
parent | a0eb37e2ea4ad96b4f6e98fddbc5c31d0bd0f293 (diff) | |
parent | 24cf70ae9691d605e4a1f7e9d8dc59ec72401bd0 (diff) |
Merge pull request #1000 from ammen99/custom-renderer-initialization
[RFC] backends: implement custom EGL and renderer initialization
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 21f9c16c..ec87201b 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <wayland-server-protocol.h> +#include <wlr/render/egl.h> #include <wlr/render/wlr_texture.h> #include <wlr/types/wlr_box.h> @@ -16,6 +17,9 @@ struct wlr_renderer { } events; }; +struct wlr_renderer *wlr_renderer_autocreate(struct wlr_egl *egl, EGLenum platform, + void *remote_display, EGLint *config_attribs, EGLint visual_id); + void wlr_renderer_begin(struct wlr_renderer *r, int width, int height); void wlr_renderer_end(struct wlr_renderer *r); void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); |