Tweeny  3.2.0
A Tweening library for modern C++

◆ step() [1/3]

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

Steps the animation by the designated percentage amount.

You can use this function to step the tweening by a specified percentage delta.

Example:

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