[cogl/lionel/introspection-next: 26/44] euler: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 26/44] euler: add introspection support
- Date: Sun, 9 Feb 2014 21:18:04 +0000 (UTC)
commit 5b71f03567db18a1ad0d600a4f56fc3eda400eed
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 16:13:45 2013 +0100
euler: add introspection support
cogl/cogl-euler.c | 5 +++++
cogl/cogl-euler.h | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-euler.c b/cogl/cogl-euler.c
index 5931f89..65a26db 100644
--- a/cogl/cogl-euler.c
+++ b/cogl/cogl-euler.c
@@ -31,10 +31,15 @@
#include <cogl-util.h>
#include <cogl-euler.h>
#include <cogl-matrix.h>
+#include "cogl-gtype-private.h"
#include <math.h>
#include <string.h>
+COGL_GTYPE_DEFINE_BOXED ("Euler", euler,
+ cogl_euler_copy,
+ cogl_euler_free);
+
void
cogl_euler_init (CoglEuler *euler,
float heading,
diff --git a/cogl/cogl-euler.h b/cogl/cogl-euler.h
index bf526d7..94866ef 100644
--- a/cogl/cogl-euler.h
+++ b/cogl/cogl-euler.h
@@ -157,6 +157,8 @@ struct _CoglEuler
};
COGL_STRUCT_SIZE_ASSERT (CoglEuler, 32);
+COGL_GTYPE_DECLARE_TYPE (euler);
+
/**
* cogl_euler_init:
* @euler: The #CoglEuler angle to initialize
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]