mutter/clutter
Georges Basile Stavracas Neto 3004c5423b
clutter/actor: Revert transform order
When doing affine transforms on 2D and 3D spaces, operations are
done relative to the origin. That means that, when applying
rotations and scales, we must:

 * translate (-anchor_x, -anchor_y, -anchor_z)
 * apply the operation
 * translate (anchor_x, anchor_y, anchor_z)

Since OpenGL has its matrices applied in the reverse order, the
usual way to do it is, then:

 * translate (anchor_x, anchor_y, anchor_z)
 * apply the operation
 * translate (-anchor_x, anchor_y, anchor_z)

However, graphene matrices do not follow the GL format, so matrix
operations are done as the first example. Now that we are using
graphene_matrix_t for every matrix operation, the transform order
is wrong.

Apply the transform operations in the opposite order.
2019-03-20 15:17:16 +00:00
..
clutter clutter/actor: Revert transform order 2019-03-20 15:17:16 +00:00
tests Replace ClutterPoint by graphene_point_t 2019-03-20 15:16:52 +00:00
.gitignore clutter: Remove clutter specific version 2018-11-06 17:17:36 +01:00
meson.build build: Don't use absolute paths with subdir keyword 2019-03-18 12:37:14 +00:00