2007-11-18 Emmanuele Bassi <ebassi@openedhand.com>

* clutter.symbols: Update exported symbols.

	* clutter/clutter-actor.[ch]: Remove clutter_actor_rotate_*
	and clutter_actor_get_rx* and provide a simpler rotation API:
	clutter_actor_set_rotation() and clutter_actor_get_rotation().

	* clutter/clutter-deprecated.h: Deprecate the old rotation API.

	* clutter/clutter-behaviour-bspline.c:
	* clutter/clutter-behaviour-rotate.c:
	* clutter/clutter-effect.c: Update internal usage of the
	rotation API.

	* tests/test-project.c: Ditto as above.
This commit is contained in:
Emmanuele Bassi
2007-11-18 15:36:04 +00:00
parent b7a79cf198
commit 7495848f14
9 changed files with 214 additions and 257 deletions

View File

@ -743,7 +743,9 @@ clutter_effect_rotate_x (ClutterEffectTemplate *template_,
c->completed_data = completed_data;
clutter_actor_rotate_x (actor, angle_start, center_y, center_y);
clutter_actor_set_rotation (actor, angle_start,
CLUTTER_X_AXIS,
0, center_y, center_z);
c->behave = clutter_behaviour_rotate_new (c->alpha,
CLUTTER_X_AXIS,
@ -803,7 +805,9 @@ clutter_effect_rotate_y (ClutterEffectTemplate *template_,
c->completed_data = completed_data;
clutter_actor_rotate_y (actor, angle_start, center_x, center_z);
clutter_actor_set_rotation (actor, angle_start,
CLUTTER_Y_AXIS,
center_x, 0, center_z);
c->behave = clutter_behaviour_rotate_new (c->alpha,
CLUTTER_Y_AXIS,
@ -863,7 +867,9 @@ clutter_effect_rotate_z (ClutterEffectTemplate *template_,
c->completed_data = completed_data;
clutter_actor_rotate_z (actor, angle_start, center_x, center_y);
clutter_actor_set_rotation (actor, angle_start,
CLUTTER_Z_AXIS,
center_x, center_y, 0);
c->behave = clutter_behaviour_rotate_new (c->alpha,
CLUTTER_Z_AXIS,