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 `tween start` as part of the utility module.
static GameplayTweenState tween_start(Fixed from,Fixed to,Fixed seconds,Ease easing)Performs `tween start` as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
from | Fixed | Value supplied for from. Keep referenced or pointed-to data valid for the complete call. |
to | Fixed | Value supplied for to. 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. |
easing | Ease | Value supplied for easing. Keep referenced or pointed-to data valid for the complete call. |
Returns: GameplayTweenState. Check the value before continuing when it represents success, availability or a resource handle.
#include "utility.hpp"
// Assume these named values have been initialized with valid data:
// Fixed from
// Fixed to
// Fixed seconds
// Ease easing
auto result = epok::UtilityLibrary::tween_start(from, to, seconds, easing);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:174
easeThe easing catalogue on its own, for curves applied to something that is not a tween.Methodevent_queue_clearPerforms `event queue clear` as part of the utility module.Methodevent_queue_emitPerforms `event queue emit` as part of the utility module.Methodevent_queue_pollPerforms `event queue poll` as part of the utility module.Methodtween_advancePerforms `tween advance` as part of the utility module.Methodtween_cancelPerforms `tween cancel` as part of the utility module.Methodtween_scheduleThe full plan: `delay_seconds` holds the first leg back, `loop` and `legs` decide the replay, and `legs` 0 loops without end.Methodtween_valuePerforms `tween value` as part of the utility module.Method