Why use it
The boolean result makes success, availability or state explicit without exceptions. The asynchronous shape lets the frame loop continue while hardware or queued work completes.
EPOK RUNTIME
Method · 1 overload
`wait` holds the first leg back without shortening it.
bool schedule(Fixed a,Fixed b,Fixed seconds,Ease mode,Fixed wait,TweenLoop loop,uint32_t legs)`wait` holds the first leg back without shortening it.
| 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. |
mode | Ease | Value supplied for mode. 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. |
Returns: bool. 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 a
// Fixed b
// Fixed seconds
// Ease mode
// Fixed wait
// TweenLoop loop
// uint32_t legs
epok::Tween& object = /* obtain a valid instance */;
auto result = object.schedule(a, b, seconds, mode, wait, loop, legs);The boolean result makes success, availability or state explicit without exceptions. The asynchronous shape lets the frame loop continue while hardware or queued work completes.
Check the return value; `false` is part of normal control flow for many PSX resource operations. Captured data and buffers must remain valid until the callback or task has completed.
Declared in runtime/utility.hpp:61
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