diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2012-03-17 16:29:09 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2012-03-17 16:29:09 +0000 |
commit | 82bc7285847ef50aae3d4e48907309ec509105ad (patch) | |
tree | 52807c9b34f5d33435ffa6175fd5486c76f05196 /clutter/clutter-types.h | |
parent | 63f3eaab62ddd42af5b0d3511d3930232c496485 (diff) | |
download | clutter-82bc7285847ef50aae3d4e48907309ec509105ad.tar.gz |
Add initializer utilities for ClutterVertex
Similar to what we did for ClutterActorBox.
Diffstat (limited to 'clutter/clutter-types.h')
-rw-r--r-- | clutter/clutter-types.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h index f9cda7450..a3092ce3f 100644 --- a/clutter/clutter-types.h +++ b/clutter/clutter-types.h @@ -122,10 +122,30 @@ struct _ClutterVertex gfloat z; }; +/** + * CLUTTER_VERTEX_INIT: + * @x: the X coordinate of the vertex + * @y: the Y coordinate of the vertex + * @z: the Z coordinate of the vertex + * + * A simple macro for initializing a #ClutterVertex when declaring it, e.g.: + * + * |[ + * ClutterVertext v = CLUTTER_VERTEX_INIT (x, y, z); + * ]| + * + * Since: 1.10 + */ +#define CLUTTER_VERTEX_INIT(x,y,z) { (x), (y), (z) } + GType clutter_vertex_get_type (void) G_GNUC_CONST; ClutterVertex *clutter_vertex_new (gfloat x, gfloat y, gfloat z); +void clutter_vertex_init (ClutterVertex *vertex, + gfloat x, + gfloat y, + gfloat z); ClutterVertex *clutter_vertex_copy (const ClutterVertex *vertex); void clutter_vertex_free (ClutterVertex *vertex); gboolean clutter_vertex_equal (const ClutterVertex *vertex_a, |