Lumino
ln::KeyFrameAnimationCurve Class Reference

キーフレームを用いて補間を行う AnimationCurve です。 More...

#include <AnimationCurve.hpp>

Inheritance diagram for ln::KeyFrameAnimationCurve:
ln::AnimationCurve

Public Member Functions

void addKeyFrame (const AnimationKeyFrame &keyFrame)
 キーフレームを追加します。
 
void addKeyFrame (float time, float value, TangentMode rightTangentMode=TangentMode::Linear, float tangent=0.0f)
 キーフレームを追加します。 More...
 
bool init ()
 init
 
- Public Member Functions inherited from ln::AnimationCurve
float evaluate (float time)
 指定した時間における値を評価します。
 
float lastFrameTime () const
 アニメーションの終端の時間を取得します。
 
AnimationWrapMode wrapMode () const
 アニメーションの繰り返しの動作を取得します。
 
void setWrapMode (AnimationWrapMode mode)
  アニメーションの繰り返しの動作を設定します。(default: Once)
 

Static Public Member Functions

static Ref< KeyFrameAnimationCurvecreate ()
 空の KeyFrameAnimationCurve を作成します。
 

Detailed Description

キーフレームを用いて補間を行う AnimationCurve です。

Member Function Documentation

◆ addKeyFrame()

void ln::KeyFrameAnimationCurve::addKeyFrame ( float  time,
float  value,
TangentMode  rightTangentMode = TangentMode::Linear,
float  tangent = 0.0f 
)

キーフレームを追加します。

rightTangentMode は、新しく追加するキーフレームの右側の補間方法です。 新しく追加するキーフレームの左側の保管方法は、そのひとつ前のキーフレームの右側の保管方法が設定されます。


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