Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Performs `restore` as part of the utility module.
void restore(Fixed a,Fixed b,Fixed seconds,Fixed progress,Ease mode,bool active,bool completion,Fixed wait=0.0,TweenLoop loop=TweenLoop::None,uint32_t legs=1,bool reverse=false)Performs `restore` as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
a | Fixed | Not documented; consult the linked header. |
b | Fixed | Not documented; consult the linked header. |
seconds | Fixed | Not documented; consult the linked header. |
progress | Fixed | Not documented; consult the linked header. |
mode | Ease | Not documented; consult the linked header. |
active | bool | Not documented; consult the linked header. |
completion | bool | Not documented; consult the linked header. |
wait | Fixed | Not documented; consult the linked header. |
loop | TweenLoop | Not documented; consult the linked header. |
legs | uint32_t | Not documented; consult the linked header. |
reverse | bool | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "utility.hpp"
// Assume these named values have been initialized with valid data:
// Fixed a
// Fixed b
// Fixed seconds
// Fixed progress
// Ease mode
// bool active
// bool completion
// Fixed wait
// TweenLoop loop
// uint32_t legs
// bool reverse
epok::Tween& object = /* obtain a valid instance */;
object.restore(a, b, seconds, progress, mode, active, completion, wait, loop, legs, reverse);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/utility.hpp:97
advanceWhole completed legs are counted by one division, so a long delta cannot spin here and an unbounded ping-pong keeps the correct leg parity.MethodalphaThe eased interpolation parameter.MethodcancelPerforms `cancel` as part of the utility module.Methodcompletion_pendingPerforms `completion pending` as part of the utility module.Methodcycles_remainingPerforms `cycles remaining` as part of the utility module.Methoddelay_valuePerforms `delay value` as part of the utility module.Methodduration_valuePerforms `duration value` as part of the utility module.Methodease_kindPerforms `ease kind` as part of the utility module.Methodelapsed_valuePerforms `elapsed value` as part of the utility module.Methodend_valueEnds value as part of the utility module.Methodloop_modePerforms `loop mode` as part of the utility module.MethodplayingStarts ing as part of the utility module.Method