Emanuele Aina 219d0efcc6 actor: rollback pivot translation even on explicit transforms
When setting an explicit transform with clutter_actor_set_transform()
and a non (0,0) pivot-point, clutter_actor_apply_transform() will fail
to roll back the pivot-point translation done before multiplying the
transformation matrix due to the "out:" label being slightly misplaced
in clutter_actor_real_apply_transform().

This works properly:
  clutter_actor_set_pivot_point (actor, 0.5, 0.5);
  clutter_actor_set_rotation_angle (actor, CLUTTER_Z_AXIS, 30);

This results in the actor being moved to the pivot-point position:
  clutter_actor_set_pivot_point (actor, 0.5, 0.5);
  clutter_matrix_init_identity(&matrix);
  cogl_matrix_rotate (&matrix, 30, 0, 0, 1.0);
  clutter_actor_set_transform (actor, &matrix);

This also add a conformance test checking that even when using a
pivot-point, no matter how a rotation is set the resulting
transformation matrix will be the same.

https://bugzilla.gnome.org/show_bug.cgi?id=690214
2012-12-14 19:15:48 +01:00
..
2011-11-10 19:05:39 +01:00
2012-06-23 08:23:11 +01:00
2012-10-12 18:54:25 +01:00
2012-02-23 12:01:11 +00:00
2012-04-27 12:30:48 +01:00
2012-04-27 12:28:49 +01:00
2011-10-19 15:23:55 +01:00
2012-04-27 12:30:48 +01:00
2012-06-05 12:28:25 +02:00
2012-01-16 23:35:16 +00:00
2012-06-11 13:47:29 +01:00
2012-04-30 17:17:41 +01:00
2012-12-02 14:50:53 -05:00
2011-06-07 16:06:24 +01:00
2012-04-27 12:30:50 +01:00
2012-04-27 12:30:48 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2012-04-27 12:30:50 +01:00
2012-02-23 17:21:57 +00:00
2012-12-02 14:50:54 -05:00
2012-09-03 20:54:43 +01:00
2012-04-27 12:30:48 +01:00
2012-09-03 20:54:43 +01:00
2012-08-20 18:28:22 +01:00