diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-09-03 15:32:57 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2014-02-09 19:57:50 +0000 |
commit | bf731e12f2389fb028e8ca263630a30bbbdbbb1e (patch) | |
tree | de5a0e4887f9c57aaf7fde7cb0c6ac5952b1dec2 | |
parent | 89078a1f733575c8c4bb38630567c0f79edfc8b0 (diff) | |
download | cogl-bf731e12f2389fb028e8ca263630a30bbbdbbb1e.tar.gz |
matrix-stack: add introspection support
-rw-r--r-- | cogl/cogl-matrix-stack.c | 3 | ||||
-rw-r--r-- | 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 6438041a..0ee0e123 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 4498ec27..1afe8afc 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 |