mutter/tests/conform
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
..
actor-anchors.c conform/anchors: Fix a dubious test 2012-03-19 14:47:55 +00:00
actor-destroy.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
actor-graph.c conform/actor-graph: Add missing NULL terminator 2012-05-01 13:30:27 +01:00
actor-invariants.c actor: rollback pivot translation even on explicit transforms 2012-12-14 19:15:48 +01:00
actor-iter.c actor: Add ActorIter.is_valid() 2012-06-27 21:28:01 +01:00
actor-layout.c conformance: Clean up 2012-02-27 13:08:31 +00:00
actor-offscreen-redirect.c conformance: Clean up 2012-02-27 13:08:31 +00:00
actor-paint-opacity.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
actor-pick.c conformance: Clean up 2012-02-27 13:08:31 +00:00
actor-shader-effect.c conformance: Clean up 2012-02-27 13:08:31 +00:00
actor-size.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
ADDING_NEW_TESTS conform: Implement TEST_CONFORM_TODO() correctly 2010-10-12 17:11:52 +01:00
animator.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
behaviours.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
binding-pool.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
cairo-texture.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
cally-text.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
color.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
events-touch.c tests: Make sure we return 0 only on error 2012-06-14 11:17:05 +02:00
group.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
interval.c conform/interval: Add transformation unit test 2012-06-18 18:04:54 +01:00
Makefile.am build: Fix out of tree builds 2012-07-30 12:33:24 +01:00
model.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
path.c path: Avoid integer overflow in get_distance() 2012-04-27 12:28:49 +01:00
rectangle.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
run-tests.sh conform: Set harsher environment for running tests 2012-03-20 16:19:23 +00:00
score.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
script-parser.c conform/script: Add the return type for the margin test 2012-06-20 18:58:31 +01:00
state.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
test-cogl-atlas-migration.c Add a conformance test for atlas migration 2011-02-24 20:45:30 +00:00
test-cogl-fixed.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-materials.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-multitexture.c tests/*: Use symbolic constants for sources and events 2012-01-25 23:20:25 +00:00
test-cogl-npot-texture.c tests/*: Use symbolic constants for sources and events 2012-01-25 23:20:25 +00:00
test-cogl-object.c conform: Adds a test-cogl-object conformance test 2010-06-04 14:44:15 +01:00
test-cogl-premult.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-readpixels.c conform/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-texture-get-set-data.c conform/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-texture-mipmaps.c conform/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-texture-pixmap-x11.c Pass context to cogl_texture_pixmap_x11_new() api 2012-02-21 17:46:11 +00:00
test-cogl-texture-rectangle.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-vertex-buffer-contiguous.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-vertex-buffer-interleved.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-vertex-buffer-mutability.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-cogl-viewport.c conform/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-conform-common.c test: Only run X11-specific code when using X11 2012-10-12 15:12:55 +01:00
test-conform-common.h Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-conform-main.c actor: rollback pivot translation even on explicit transforms 2012-12-14 19:15:48 +01:00
test-launcher.sh.in build: Allow to run the tests from any directory 2010-07-06 12:39:15 +01:00
text-cache.c conform/text-cache: Use the stage paint signal 2012-03-16 12:33:37 +00:00
text.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
texture-fbo.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
texture.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
timeline-interpolate.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
timeline-progress.c timeline: Add support for step() progress 2012-07-19 20:47:00 -04:00
timeline-rewind.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
timeline.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00
units.c conformance: Rename the source files 2012-02-27 13:02:01 +00:00