[clutter/wip/master-next: 21/23] types: Add CLUTTER_VERTEX_INIT_ZERO



commit 9c73aff4075d57b7e7e484153aca474be9bc1002
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jul 9 11:58:06 2012 +0100

    types: Add CLUTTER_VERTEX_INIT_ZERO
    
    Similar to the macros for ClutterPoint, ClutterSize, and ClutterRect.

 clutter/clutter-types.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h
index e4e7f2e..e0ee81a 100644
--- a/clutter/clutter-types.h
+++ b/clutter/clutter-types.h
@@ -396,6 +396,15 @@ struct _ClutterVertex
  */
 #define CLUTTER_VERTEX_INIT(x,y,z)      { (x), (y), (z) }
 
+/**
+ * CLUTTER_VERTEX_INIT_ZERO:
+ *
+ * A simple macro for initializing a #ClutterVertex to (0, 0, 0).
+ *
+ * Since: 1.12
+ */
+#define CLUTTER_VERTEX_INIT_ZERO        CLUTTER_VERTEX_INIT (0.f, 0.f, 0.f)
+
 GType          clutter_vertex_get_type (void) G_GNUC_CONST;
 ClutterVertex *clutter_vertex_new      (gfloat               x,
                                         gfloat               y,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]