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
..
2012-06-27 21:28:01 +01:00
2012-02-27 13:08:31 +00:00
2012-02-27 13:08:31 +00:00
2012-02-27 13:08:31 +00:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00
2012-07-30 12:33:24 +01:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00
2012-02-27 13:02:01 +00:00