Epok Engine

EPOK RUNTIME

epok::UtilityLibrary::tween_start

Method · 1 overload

Method

Performs `tween start` as part of the utility module.

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

Declaration

static
Declaration
static GameplayTweenState tween_start(Fixed from,Fixed to,Fixed seconds,Ease easing)

Performs `tween start` as part of the utility module.

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.

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

auto result = epok::UtilityLibrary::tween_start(from, to, seconds, easing);

Why use it

It provides direct, allocation-conscious access to the utility module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Related members