diff options
author | Alexander Larsson <alexl@redhat.com> | 2014-11-03 10:43:31 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2014-11-03 10:43:31 +0100 |
commit | 9930e6dcaaa334b92f1cfc7e798a0064ed9d0666 (patch) | |
tree | d789f44af171bcaa58359f71f19e0222cd682cbb /gtk/gtkglarea.h | |
parent | 4aa0d168652a629c3596015b6a9faaeb589ba4d1 (diff) | |
download | gtk+-9930e6dcaaa334b92f1cfc7e798a0064ed9d0666.tar.gz |
GtkGLArea: Add create-context signal
This lets you hook into the GL context creation which is useful
if you want to share one GL context between GtkGLArea widgets.
Diffstat (limited to 'gtk/gtkglarea.h')
-rw-r--r-- | gtk/gtkglarea.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkglarea.h b/gtk/gtkglarea.h index f3ad2a1056..8ea0772e87 100644 --- a/gtk/gtkglarea.h +++ b/gtk/gtkglarea.h @@ -71,6 +71,7 @@ struct _GtkGLAreaClass void (* resize) (GtkGLArea *area, int width, int height); + GdkGLContext * (* create_context) (GtkGLArea *area); /*< private >*/ gpointer _padding[6]; @@ -126,6 +127,11 @@ void gtk_gl_area_make_current (GtkGLArea *area); GDK_AVAILABLE_IN_3_16 void gtk_gl_area_attach_buffers (GtkGLArea *area); +GDK_AVAILABLE_IN_3_16 +void gtk_gl_area_set_error (GtkGLArea *area, + const GError *error); +GDK_AVAILABLE_IN_3_16 +GError * gtk_gl_area_get_error (GtkGLArea *area); G_END_DECLS |