aboutsummaryrefslogtreecommitdiff
path: root/include/render/egl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/render/egl.h')
-rw-r--r--include/render/egl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/render/egl.h b/include/render/egl.h
index 547254c8..f77e1147 100644
--- a/include/render/egl.h
+++ b/include/render/egl.h
@@ -101,4 +101,16 @@ void wlr_egl_save_context(struct wlr_egl_context *context);
*/
bool wlr_egl_restore_context(struct wlr_egl_context *context);
+/**
+ * Make the EGL context current.
+ *
+ * Callers are expected to clear the current context when they are done by
+ * calling wlr_egl_unset_current().
+ */
+bool wlr_egl_make_current(struct wlr_egl *egl);
+
+bool wlr_egl_unset_current(struct wlr_egl *egl);
+
+bool wlr_egl_is_current(struct wlr_egl *egl);
+
#endif