The Tween class defines transition between two values over time.
More...
#include <jmCommon.h>
The Tween class defines transition between two values over time.
◆ Mode
The tween mode.
Enumerator |
---|
NORMAL | The tween runs from the starting value to the end value and then stops.
|
REVERSE | The tween runs from the end value to the start value and then stops.
|
LOOP | The tween runs in loops from the start value to the end value.
|
LOOP_REVERSE | The tween runs in loops from the start value to the end value and reverse direction on each loop.
|
◆ Init()
void Init |
( |
float |
_valueStart, |
|
|
float |
_valueEnd, |
|
|
float |
_durationS, |
|
|
Easing::Kind |
_easingKind |
|
) |
| |
Initialize the parameters of this tween.
- Parameters
-
_valueStart | The starting value. |
_valueEnd | The end value. |
_durationS | Duration of one loop in seconds. |
_easingKind | The easing kind. |
◆ Play()
Start running this tween.
◆ Update()
Updates the tween value and returns it.
This function must be called inside the application update loop.
◆ IsIdle()
Returns true if this tween is not running; otherwise return false.
◆ Stop()
◆ Pause()
Pause running the tween.
- See also
- Resume
◆ Resume()
Resume running the tween.
- See also
- Pause
◆ SetEasingKind()
Set the easing kind of this tween.
◆ SetMode()
void SetMode |
( |
Mode |
_mode | ) |
|
|
inline |
Set the mode of this tween.
◆ GetStartValue()
Returns the starting value of this tween;.
◆ GetEndValue()
Returns the end value of this tween;.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmCommon.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmCommon.cpp