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:
@ -88,33 +88,18 @@ alpha_notify_foreach (ClutterBehaviour *behaviour,
|
||||
ClutterActor *actor,
|
||||
gpointer data)
|
||||
{
|
||||
ClutterFixed angle;
|
||||
ClutterBehaviourRotate *rotate_behaviour;
|
||||
ClutterFixed angle = GPOINTER_TO_UINT (data);
|
||||
ClutterBehaviourRotate *rotate_behaviour;
|
||||
ClutterBehaviourRotatePrivate *priv;
|
||||
|
||||
rotate_behaviour = CLUTTER_BEHAVIOUR_ROTATE (behaviour);
|
||||
priv = rotate_behaviour->priv;
|
||||
|
||||
angle = GPOINTER_TO_UINT(data);
|
||||
|
||||
switch (priv->axis)
|
||||
{
|
||||
case CLUTTER_X_AXIS:
|
||||
clutter_actor_rotate_xx (actor,
|
||||
angle,
|
||||
priv->center_y, priv->center_z);
|
||||
break;
|
||||
case CLUTTER_Y_AXIS:
|
||||
clutter_actor_rotate_yx (actor,
|
||||
angle,
|
||||
priv->center_x, priv->center_z);
|
||||
break;
|
||||
case CLUTTER_Z_AXIS:
|
||||
clutter_actor_rotate_zx (actor,
|
||||
angle,
|
||||
priv->center_x, priv->center_y);
|
||||
break;
|
||||
}
|
||||
clutter_actor_set_rotationx (actor, angle,
|
||||
priv->axis,
|
||||
priv->center_x,
|
||||
priv->center_y,
|
||||
priv->center_z);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user