2018-07-13 12:40:56 +00: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
|
|
|
|
|
2018-02-12 20:29:23 +00:00
|
|
|
#ifndef WLR_RENDER_EGL_H
|
|
|
|
#define WLR_RENDER_EGL_H
|
2017-05-03 05:04:41 +00:00
|
|
|
|
2019-10-16 13:16:53 +00:00
|
|
|
#ifndef EGL_NO_X11
|
|
|
|
#define EGL_NO_X11
|
|
|
|
#endif
|
2020-11-02 09:51:52 +00:00
|
|
|
#ifndef EGL_NO_PLATFORM_SPECIFIC_TYPES
|
|
|
|
#define EGL_NO_PLATFORM_SPECIFIC_TYPES
|
|
|
|
#endif
|
2018-11-09 19:31:11 +00:00
|
|
|
|
2020-05-11 06:58:30 +00:00
|
|
|
#include <wlr/config.h>
|
|
|
|
|
2017-05-03 05:04:41 +00:00
|
|
|
#include <EGL/egl.h>
|
2017-08-09 19:25:34 +00:00
|
|
|
#include <EGL/eglext.h>
|
2018-02-09 21:54:14 +00:00
|
|
|
#include <pixman.h>
|
2018-02-12 20:29:23 +00:00
|
|
|
#include <stdbool.h>
|
2019-07-27 08:53:54 +00:00
|
|
|
#include <wayland-server-core.h>
|
2018-05-29 21:38:00 +00:00
|
|
|
#include <wlr/render/dmabuf.h>
|
2019-04-01 16:17:23 +00:00
|
|
|
#include <wlr/render/drm_format_set.h>
|
2017-05-03 05:04:41 +00:00
|
|
|
|
2022-03-31 09:29:24 +00:00
|
|
|
struct wlr_egl;
|
2017-05-03 05:04:41 +00:00
|
|
|
|
2021-11-27 19:01:48 +00:00
|
|
|
struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display,
|
|
|
|
EGLContext context);
|
|
|
|
|
2022-05-25 15:42:24 +00:00
|
|
|
/**
|
|
|
|
* Get the EGL display used by the struct wlr_egl.
|
|
|
|
*
|
|
|
|
* This is typically used by compositors which need to perform custom OpenGL
|
|
|
|
* operations.
|
|
|
|
*/
|
|
|
|
EGLDisplay wlr_egl_get_display(struct wlr_egl *egl);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the EGL context used by the struct wlr_egl.
|
|
|
|
*
|
|
|
|
* This is typically used by compositors which need to perform custom OpenGL
|
|
|
|
* operations.
|
|
|
|
*/
|
|
|
|
EGLContext wlr_egl_get_context(struct wlr_egl *egl);
|
|
|
|
|
2017-05-03 05:04:41 +00:00
|
|
|
#endif
|