Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches

◆ key_frame()

template<typename... ValueTypes>
key_frame ( ValueTypes... vs)
inlineexplicit

Constructs a key_frame object initialized with provided values.

This constructor initializes the key_frame object by setting its position to 0, populating the values container with the provided values vs..., and initializing the easing functions and tween frame counts with default values.

Parameters
vsThe values to initialize the key_frame, passed as a parameter pack of type ValueTypes.... These values are stored in a container, which can either be a tuple or an array depending on their types.
Returns
A key_frame object initialized with the provided values.