Tweeny  3
A Tweening library for modern C++

◆ step() [1/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);
Parameters
dtDelta duration
suppressCallbacks(Optional) Suppress callbacks registered with tween::onStep()
Returns
std::tuple<Ts...> with the current tween values.