[cogl/lionel/introspection-next: 24/44] matrix-stack: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 24/44] matrix-stack: add introspection support
- Date: Sun, 9 Feb 2014 21:17:53 +0000 (UTC)
commit bf731e12f2389fb028e8ca263630a30bbbdbbb1e
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 15:32:57 2013 +0100
matrix-stack: add introspection support
cogl/cogl-matrix-stack.c | 3 +++
cogl/cogl-matrix-stack.h | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-matrix-stack.c b/cogl/cogl-matrix-stack.c
index 6438041..0ee0e12 100644
--- a/cogl/cogl-matrix-stack.c
+++ b/cogl/cogl-matrix-stack.c
@@ -37,10 +37,13 @@
#include "cogl-offscreen.h"
#include "cogl-matrix-private.h"
#include "cogl-magazine-private.h"
+#include "cogl-gtype-private.h"
static void _cogl_matrix_stack_free (CoglMatrixStack *stack);
COGL_OBJECT_DEFINE (MatrixStack, matrix_stack);
+COGL_GTYPE_DEFINE_CLASS (MatrixStack, matrix_stack);
+COGL_GTYPE_DEFINE_BOXED ("MatrixEntry", matrix_entry, cogl_matrix_entry_ref, cogl_matrix_entry_unref);
static CoglMagazine *cogl_matrix_stack_magazine;
static CoglMagazine *cogl_matrix_stack_matrices_magazine;
diff --git a/cogl/cogl-matrix-stack.h b/cogl/cogl-matrix-stack.h
index 4498ec2..1afe8af 100644
--- a/cogl/cogl-matrix-stack.h
+++ b/cogl/cogl-matrix-stack.h
@@ -164,6 +164,9 @@ typedef struct _CoglMatrixStack CoglMatrixStack;
*/
typedef struct _CoglMatrixEntry CoglMatrixEntry;
+COGL_GTYPE_DECLARE_TYPE (matrix_stack);
+COGL_GTYPE_DECLARE_TYPE (matrix_entry);
+
/**
* cogl_matrix_stack_new:
* @ctx: A #CoglContext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]