diff options
author | Bastien Nocera <hadess@hadess.net> | 2011-04-05 14:03:08 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2011-04-05 14:03:08 +0100 |
commit | 9f1f9d23b8efd4fb786418713ec786b121e68ef3 (patch) | |
tree | 667ee09eab5ede6731e2372cbba72d167a475bff | |
parent | 740cf2110bd354cfd15a09489a3847441afc4dc5 (diff) | |
download | clutter-gst-9f1f9d23b8efd4fb786418713ec786b121e68ef3.tar.gz |
examples: Rotate navigation test texture
To make sure that the navigation test's coordinates transformation
works as expected.
-rw-r--r-- | examples/video-sink-navigation.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/video-sink-navigation.c b/examples/video-sink-navigation.c index b5d7f77..a4670fa 100644 --- a/examples/video-sink-navigation.c +++ b/examples/video-sink-navigation.c @@ -123,6 +123,13 @@ main (int argc, char *argv[]) constraint = clutter_bind_constraint_new (stage, CLUTTER_BIND_SIZE, 0.0); clutter_actor_add_constraint_with_name (texture, "size", constraint); + /* Rotate a bit */ + clutter_actor_set_rotation (texture, CLUTTER_Z_AXIS, + 45.0, + clutter_actor_get_width (stage) / 2, + clutter_actor_get_height (stage) / 2, + 0.0); + /* start the timeline */ clutter_timeline_start (timeline); |