Epok Engine

EPOK RUNTIME

epok::UtilityVectorLibrary::vector_tween_schedule

Method · 1 overload

Method

Performs `vector tween schedule` as part of the gameplay api module.

Belongs to
epok::UtilityVectorLibrary
Header
gameplay_api.hpp
Overloads
1

Declaration

static
Declaration
static GameplayVector3TweenState vector_tween_schedule(GameplayVector3 from,GameplayVector3 to,Fixed seconds,Ease easing,Fixed delay_seconds,TweenLoop loop,uint32_t legs)

Performs `vector tween schedule` as part of the gameplay api module.

ParameterTypeMeaning
fromGameplayVector3Value supplied for from. Keep referenced or pointed-to data valid for the complete call.
toGameplayVector3Value 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: GameplayVector3TweenState. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "gameplay_api.hpp"

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

auto result = epok::UtilityVectorLibrary::vector_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/gameplay_api.hpp:234

Related members