mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
2008-02-08 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-path.c: Move the nice graph and description from the Path behaviour... * clutter/clutter-behaviour.c: ... to the main Behaviour class.
This commit is contained in:
parent
4fb09b9db9
commit
143be77205
@ -1,3 +1,10 @@
|
|||||||
|
2008-02-08 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-behaviour-path.c: Move the nice graph and
|
||||||
|
description from the Path behaviour...
|
||||||
|
|
||||||
|
* clutter/clutter-behaviour.c: ... to the main Behaviour class.
|
||||||
|
|
||||||
2008-02-08 Emmanuele Bassi <ebassi@openedhand.com>
|
2008-02-08 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-behaviour-path.c: Add a paragraph describing
|
* clutter/clutter-behaviour-path.c: Add a paragraph describing
|
||||||
|
@ -40,18 +40,6 @@
|
|||||||
* knot in the path is reached with the upper bound value provided by
|
* knot in the path is reached with the upper bound value provided by
|
||||||
* the #ClutterAlpha object used by the behaviour.
|
* the #ClutterAlpha object used by the behaviour.
|
||||||
*
|
*
|
||||||
* <figure id="behaviour-path-alpha">
|
|
||||||
* <title>Effects of alpha functions on a path</title>
|
|
||||||
* <graphic fileref="path-alpha-func.png" format="PNG"/>
|
|
||||||
* </figure>
|
|
||||||
*
|
|
||||||
* The actors position between the path's end points directly correlates
|
|
||||||
* to the #ClutterAlpha's current alpha value driving the behaviour. With
|
|
||||||
* the #ClutterAlpha's function set to %CLUTTER_ALPHA_RAMP_INC the actor
|
|
||||||
* will follow the path at a constant velocity, but when changing to
|
|
||||||
* %CLUTTER_ALPHA_SINE_INC the actor initially accelerates quickly before
|
|
||||||
* quickly decelerating.
|
|
||||||
*
|
|
||||||
* <note>If the alpha function is a periodic function, i.e. it returns to
|
* <note>If the alpha function is a periodic function, i.e. it returns to
|
||||||
* 0 after reaching %CLUTTER_ALPHA_MAX_ALPHA, then the actors will walk
|
* 0 after reaching %CLUTTER_ALPHA_MAX_ALPHA, then the actors will walk
|
||||||
* the path back to the starting #ClutterKnot.</note>
|
* the path back to the starting #ClutterKnot.</note>
|
||||||
|
@ -42,11 +42,29 @@
|
|||||||
* of a set of actors; #ClutterBehaviourScale, which controls the width
|
* of a set of actors; #ClutterBehaviourScale, which controls the width
|
||||||
* and height of a set of actors.
|
* and height of a set of actors.
|
||||||
*
|
*
|
||||||
|
* To visualize the effects of different alpha functions on a
|
||||||
|
* #ClutterBehaviour implementation it is possible to take the
|
||||||
|
* #ClutterBehaviourPath as an example:
|
||||||
|
*
|
||||||
|
* <figure id="behaviour-path-alpha">
|
||||||
|
* <title>Effects of alpha functions on a path</title>
|
||||||
|
* <graphic fileref="path-alpha-func.png" format="PNG"/>
|
||||||
|
* </figure>
|
||||||
|
*
|
||||||
|
* The actors position between the path's end points directly correlates
|
||||||
|
* to the #ClutterAlpha's current alpha value driving the behaviour. With
|
||||||
|
* the #ClutterAlpha's function set to %CLUTTER_ALPHA_RAMP_INC the actor
|
||||||
|
* will follow the path at a constant velocity, but when changing to
|
||||||
|
* %CLUTTER_ALPHA_SINE_INC the actor initially accelerates before quickly
|
||||||
|
* decelerating.
|
||||||
|
*
|
||||||
* In order to implement a new behaviour you should subclass #ClutterBehaviour
|
* In order to implement a new behaviour you should subclass #ClutterBehaviour
|
||||||
* and override the "alpha_notify" virtual function; inside the overridden
|
* and override the "alpha_notify" virtual function; inside the overridden
|
||||||
* function you should obtain the alpha value from the #ClutterAlpha
|
* function you should obtain the alpha value from the #ClutterAlpha
|
||||||
* instance bound to the behaviour and apply it to the desiderd property
|
* instance bound to the behaviour and apply it to the desiderd property
|
||||||
* (or properties) of every actor controlled by the behaviour.
|
* (or properties) of every actor controlled by the behaviour.
|
||||||
|
*
|
||||||
|
* #ClutterBehaviour is available since Clutter 0.2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user