aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/egl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index 81d4dfa4..06222237 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -71,6 +71,22 @@ struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display,
EGLContext context);
/**
+ * 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);
+
+/**
* Make the EGL context current.
*
* Callers are expected to clear the current context when they are done by