summaryrefslogtreecommitdiff
path: root/gdk/gdkglcontext.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-04-18 10:10:30 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-04-25 12:29:36 +0100
commite1cecd243a82729f10f2fbb4b745be8f6b3b8f67 (patch)
treee984cf88c94166bd225f6410bb918621724c6ccc /gdk/gdkglcontext.h
parent6225d435e6cace5ad6615e8b2b3ec20e5b9b6c45 (diff)
downloadgtk+-e1cecd243a82729f10f2fbb4b745be8f6b3b8f67.tar.gz
gl: Add 'use-es' flag
On some platforms we can ask the GL context machinery to create a GLES context, instead of a GL one. In order to ask for a GLES context at GdkGLContext realization time, we use a bit field like we do for forward compatible, or debug contexts. The 'use-es' bit also changes the way we select a default version, because OpenGL and OpenGLES versions differ. https://bugzilla.gnome.org/show_bug.cgi?id=743746
Diffstat (limited to 'gdk/gdkglcontext.h')
-rw-r--r--gdk/gdkglcontext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h
index daacd1e0c7..44633a7c8a 100644
--- a/gdk/gdkglcontext.h
+++ b/gdk/gdkglcontext.h
@@ -73,6 +73,11 @@ void gdk_gl_context_set_forward_compatible (GdkGLContext *
gboolean compatible);
GDK_AVAILABLE_IN_3_16
gboolean gdk_gl_context_get_forward_compatible (GdkGLContext *context);
+GDK_AVAILABLE_IN_3_22
+void gdk_gl_context_set_use_es (GdkGLContext *context,
+ gboolean use_es);
+GDK_AVAILABLE_IN_3_22
+gboolean gdk_gl_context_get_use_es (GdkGLContext *context);
GDK_AVAILABLE_IN_3_16
gboolean gdk_gl_context_realize (GdkGLContext *context,