Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CArrayKeyFrame< T > Class Template Reference

Container for an array of keyframes with interpolation support. More...

#include <Animation/CAnimationTrack.h>

Public Member Functions

void clearHint ()
 Resets the search hint.
int getIndex (f32 frame)
 Finds the index of the keyframe at or just before the specified time.
u32 size ()
 Gets the number of keyframes.
CKeyFrameData< T > * pointer ()
 Returns the raw pointer to the keyframe data.
f32 getLastFrame ()
 Gets the time of the last keyframe.

Public Attributes

core::array< CKeyFrameData< T > > Data
 List of keyframes, sorted by time.
Default
 Default value used if no keyframes are present.
int Hint
 Internal hint for optimizing keyframe searching.

Detailed Description

template<class T>
class Skylicht::CArrayKeyFrame< T >

Container for an array of keyframes with interpolation support.

Member Function Documentation

◆ getIndex()

template<class T>
int Skylicht::CArrayKeyFrame< T >::getIndex ( f32 frame)

Finds the index of the keyframe at or just before the specified time.

Parameters
frameTime in seconds.
Returns
Index in the Data array.

◆ getLastFrame()

template<class T>
f32 Skylicht::CArrayKeyFrame< T >::getLastFrame ( )
inline

Gets the time of the last keyframe.

Returns
Time in seconds.

◆ pointer()

template<class T>
CKeyFrameData< T > * Skylicht::CArrayKeyFrame< T >::pointer ( )
inline

Returns the raw pointer to the keyframe data.

Returns
Pointer to CKeyFrameData<T>.

◆ size()

template<class T>
u32 Skylicht::CArrayKeyFrame< T >::size ( )
inline

Gets the number of keyframes.

Returns
Size of Data array.

The documentation for this class was generated from the following file: