[cogl/lionel/introspection-next: 17/42] primitive: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 17/42] primitive: add introspection support
- Date: Tue, 10 Dec 2013 21:51:43 +0000 (UTC)
commit dd5319413c88436f1e25d8cf9c617b583a9056eb
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]