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
 Return number of keyframes.
 
bool IsEmpty () const
 Return whether the set is empty.
 
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: GetKeyFrameTime(T) must return float time to be used for ordering.


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