Why use it
It provides direct, allocation-conscious access to the utility module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
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 | Value supplied for a. Keep referenced or pointed-to data valid for the complete call. |
b | Fixed | Value supplied for b. Keep referenced or pointed-to data valid for the complete call. |
seconds | Fixed | Value supplied for seconds. Keep referenced or pointed-to data valid for the complete call. |
progress | Fixed | Value supplied for progress. Keep referenced or pointed-to data valid for the complete call. |
mode | Ease | Value supplied for mode. Keep referenced or pointed-to data valid for the complete call. |
active | bool | Value supplied for active. Keep referenced or pointed-to data valid for the complete call. |
completion | bool | Value supplied for completion. Keep referenced or pointed-to data valid for the complete call. |
wait | Fixed | Value supplied for wait. Keep referenced or pointed-to data valid for the complete call. |
loop | TweenLoop | Value supplied for loop. Keep referenced or pointed-to data valid for the complete call. |
legs | uint32_t | Value supplied for legs. Keep referenced or pointed-to data valid for the complete call. |
reverse | bool | Value supplied for reverse. Keep referenced or pointed-to data valid for the complete call. |
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);It provides direct, allocation-conscious access to the utility module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
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