[clutter-gst] examples: Rotate navigation test texture



commit 9f1f9d23b8efd4fb786418713ec786b121e68ef3
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Apr 5 14:03:08 2011 +0100

    examples: Rotate navigation test texture
    
    To make sure that the navigation test's coordinates transformation
    works as expected.

 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);
 



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