[cogl/lionel/introspection-next: 18/44] primitive: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 18/44] primitive: add introspection support
- Date: Sun, 9 Feb 2014 21:17:23 +0000 (UTC)
commit 48ca53526a9503f6e01c1898ce6968ab9a909075
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 14:23:51 2013 +0100
primitive: add introspection support
cogl/cogl-primitive.c | 2 ++
cogl/cogl-primitive.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-primitive.c b/cogl/cogl-primitive.c
index 580f4b8..4d7f1d4 100644
--- a/cogl/cogl-primitive.c
+++ b/cogl/cogl-primitive.c
@@ -35,6 +35,7 @@
#include "cogl-primitive-private.h"
#include "cogl-attribute-private.h"
#include "cogl-framebuffer-private.h"
+#include "cogl-gtype-private.h"
#include <stdarg.h>
#include <string.h>
@@ -42,6 +43,7 @@
static void _cogl_primitive_free (CoglPrimitive *primitive);
COGL_OBJECT_DEFINE (Primitive, primitive);
+COGL_GTYPE_DEFINE_CLASS (Primitive, primitive);
CoglPrimitive *
cogl_primitive_new_with_attributes (CoglVerticesMode mode,
diff --git a/cogl/cogl-primitive.h b/cogl/cogl-primitive.h
index 1266fd2..622cb63 100644
--- a/cogl/cogl-primitive.h
+++ b/cogl/cogl-primitive.h
@@ -50,6 +50,8 @@ COGL_BEGIN_DECLS
* FIXME
*/
+COGL_GTYPE_DECLARE_TYPE (primitive);
+
/**
* CoglVertexP2:
* @x: The x component of a position attribute
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]