diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-12 14:28:22 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-12 14:29:44 +0000 |
commit | 390a42fa605e99362ac307bf568113dcdad41cdc (patch) | |
tree | 890ff714b0e53385ec0e78e205610c2653c150e1 /gdk/gdkglcontext.h | |
parent | f52a59d4148dedc40d8e942f120c7999a39ffec7 (diff) | |
download | gtk+-390a42fa605e99362ac307bf568113dcdad41cdc.tar.gz |
gl: Add gdk_gl_context_get_version()
Store the OpenGL version when we first do the extensions check; this
allows client code to check the available GL version without requiring a
call to gdk_gl_context_make_current() and epoxy_gl_version().
Diffstat (limited to 'gdk/gdkglcontext.h')
-rw-r--r-- | gdk/gdkglcontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h index d6d5f39333..089d746c39 100644 --- a/gdk/gdkglcontext.h +++ b/gdk/gdkglcontext.h @@ -48,6 +48,10 @@ GDK_AVAILABLE_IN_3_16 GdkWindow * gdk_gl_context_get_window (GdkGLContext *context); GDK_AVAILABLE_IN_3_16 GdkGLContext * gdk_gl_context_get_shared_context (GdkGLContext *context); +GDK_AVAILABLE_IN_3_16 +void gdk_gl_context_get_version (GdkGLContext *context, + int *major, + int *minor); GDK_AVAILABLE_IN_3_16 void gdk_gl_context_set_required_version (GdkGLContext *context, |