Rebel Fork Framework
Urho3D::KeyFrameSet< T > Struct Template Reference

#include <Urho3D/Container/KeyFrameSet.h>

Public Types

using KeyFrame = T
 

Public Member Functions

void SortKeyFrames ()
 Sort keyframes by time.
 
void AddKeyFrame (const KeyFrame &keyFrame)
 Append keyframe preserving container order.
 
void RemoveKeyFrame (unsigned index)
 Remove a keyframe at index.
 
void RemoveAllKeyFrames ()
 Remove all keyframes.
 
KeyFrame * GetKeyFrame (unsigned index)
 Return keyframe at index, or null if not found.
 
unsigned GetNumKeyFrames () const
 
void GetKeyFrames (float time, float duration, bool isLooped, unsigned &frameIndex, unsigned &nextFrameIndex, float &blendFactor) const
 Return keyframes for interpolation.
 
bool GetKeyFrameIndex (float time, unsigned &index) const
 Return keyframe index based on time and previous index as hint. Return false if animation is empty.
 

Public Attributes

ea::vector< KeyFrame > keyFrames_
 

Detailed Description

template<class T>
struct Urho3D::KeyFrameSet< T >

Sorted array of keyframes. T: must be structure with member float time_ which is used for ordering.

Member Function Documentation

◆ GetNumKeyFrames()

template<class T >
unsigned Urho3D::KeyFrameSet< T >::GetNumKeyFrames ( ) const
inline

Return number of keyframes.


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