Epok Engine

EPOK RUNTIME

epok::UtilityLibrary::tween_schedule

Method · 1 overload

Method

The full plan: `delay_seconds` holds the first leg back, `loop` and `legs` decide the replay, and `legs` 0 loops without end.

Belongs to
epok::UtilityLibrary
Header
utility.hpp
Overloads
1

Declaration

static
Declaration
static GameplayTweenState tween_schedule(Fixed from,Fixed to,Fixed seconds,Ease easing,Fixed delay_seconds,TweenLoop loop,uint32_t legs)

The full plan: `delay_seconds` holds the first leg back, `loop` and `legs` decide the replay, and `legs` 0 loops without end.

ParameterTypeMeaning
fromFixedValue supplied for from. Keep referenced or pointed-to data valid for the complete call.
toFixedValue supplied for to. Keep referenced or pointed-to data valid for the complete call.
secondsFixedValue supplied for seconds. Keep referenced or pointed-to data valid for the complete call.
easingEaseValue supplied for easing. Keep referenced or pointed-to data valid for the complete call.
delay_secondsFixedValue supplied for delay_seconds. Keep referenced or pointed-to data valid for the complete call.
loopTweenLoopValue supplied for loop. Keep referenced or pointed-to data valid for the complete call.
legsuint32_tValue supplied for legs. 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.

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// Fixed from
// Fixed to
// Fixed seconds
// Ease easing
// Fixed delay_seconds
// TweenLoop loop
// uint32_t legs

auto result = epok::UtilityLibrary::tween_schedule(from, to, seconds, easing, delay_seconds, loop, legs);

Why use it

The asynchronous shape lets the frame loop continue while hardware or queued work completes.

Trade-offs and warnings

Captured data and buffers must remain valid until the callback or task has completed.

Declared in runtime/utility.hpp:181

Related members