Small fix.

--HG--
branch : dev-2.1
This commit is contained in:
Martín Lucas Golini
2018-01-13 02:28:31 -03:00
parent 37720c3fc8
commit c5c97c0ff7
4 changed files with 32 additions and 17 deletions

View File

@@ -47,7 +47,10 @@ class EE_API Interpolation1d {
Interpolation1d& waitAndAdd( const Float& pos, const Time& waitTime, const Time& addTime );
/** Start the animation */
Interpolation1d& start( OnPathEndCallback PathEndCallback = OnPathEndCallback(), OnStepCallback StepCallback = OnStepCallback() );
Interpolation1d& start();
/** Start the animation */
Interpolation1d& start( OnPathEndCallback PathEndCallback, OnStepCallback StepCallback = OnStepCallback() );
/** Stop the animation */
Interpolation1d& stop();

View File

@@ -47,11 +47,14 @@ class EE_API Interpolation2d {
/** Same as add( pos, waitTime ).add( pos, addTime ); */
Interpolation2d& waitAndAdd( const Vector2f& pos, const Time& waitTime, const Time& addTime );
/** Start the animation ( will reset the current state, and start from the beginning ) */
Interpolation2d& start();
/** Start the animation ( will reset the current state, and start from the beginning )
* @param PathEndCallback An optional callback fired when the animation ends.
* @param StepCallback An optional callback that is fired every time that a step is completed.
*/
Interpolation2d& start( OnPathEndCallback PathEndCallback = OnPathEndCallback(), OnStepCallback StepCallback = OnStepCallback() );
Interpolation2d& start( OnPathEndCallback PathEndCallback, OnStepCallback StepCallback = OnStepCallback() );
/** Stop the animation ( Enable = false ) */
Interpolation2d& stop();