Tweeny  3.2.0
A Tweening library for modern C++

◆ step() [2/3]

const detail::tweentraits<T, Ts...>::valuesType& step ( int32_t  dt,
bool  suppressCallbacks = false 
)

Steps the animation by the designated delta amount.

You should call this every frame of your application, passing in the amount of delta time that you want to animate.

Example:

// tween duration is 100ms
auto tween = tweeny::from(0).to(100).during(100);
// steps for 16ms
tween.step(16);
tween()
Default constructor for a tween.
tween< Ts... > from(Ts... vs)
Creates a tween starting from the values defined in the arguments.
Parameters
dtDelta duration
suppressCallbacks(Optional) Suppress callbacks registered with tween::onStep()
Returns
std::tuple<Ts...> with the current tween values.