[cogl/lionel/introspection: 52/76] matrix-stack: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 52/76] matrix-stack: add introspection support
- Date: Wed, 11 Sep 2013 15:24:09 +0000 (UTC)
commit 79fe1631207b8fb7ddb6caa0b12f75fb2bc3a6bc
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 877086e..315f50d 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 0ba8195..526f46d 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]