GtkGLArea: Add resize signal

This is very useful, as almost all GL code wants to recalculate
the cameras each time the window size changes.
This commit is contained in:
Alexander Larsson
2014-10-30 19:49:43 +01:00
parent 969b9c6552
commit 37d0159a84
2 changed files with 61 additions and 10 deletions

View File

@ -68,6 +68,9 @@ struct _GtkGLAreaClass
/*< public >*/
gboolean (* render) (GtkGLArea *area,
GdkGLContext *context);
void (* resize) (GtkGLArea *area,
int width,
int height);
/*< private >*/
gpointer _padding[6];