summaryrefslogtreecommitdiff
path: root/cogl/cogl-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-context.h')
-rw-r--r--cogl/cogl-context.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index 8e1775c1..84435221 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -45,6 +45,10 @@ typedef struct _CoglContext CoglContext;
#include <cogl/cogl-defines.h>
#include <cogl/cogl-display.h>
#include <cogl/cogl-primitive.h>
+
+#ifdef COGL_HAS_GTYPE_SUPPORT
+#include <glib-object.h>
+#endif
#ifdef COGL_HAS_EGL_PLATFORM_ANDROID_SUPPORT
#include <android/native_window.h>
#endif
@@ -95,6 +99,15 @@ COGL_BEGIN_DECLS
#define COGL_CONTEXT(OBJECT) ((CoglContext *)OBJECT)
+#ifdef COGL_HAS_GTYPE_SUPPORT
+/**
+ * cogl_context_get_gtype:
+ *
+ * Returns: a #GType that can be used with the GLib type system.
+ */
+GType cogl_context_get_gtype (void);
+#endif
+
/**
* cogl_context_new: (constructor)
* @display: (allow-none): A #CoglDisplay pointer