port from perforce
This commit is contained in:
32
aiwaz/Aiwaz.Contracts/ITransformationAnimation.cs
Normal file
32
aiwaz/Aiwaz.Contracts/ITransformationAnimation.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using SlimDX;
|
||||
namespace Aiwaz.Contracts
|
||||
{
|
||||
public enum KeyFrameTarget
|
||||
{
|
||||
Position = 0,
|
||||
Rotation,
|
||||
Scale
|
||||
}
|
||||
|
||||
public struct KeyFrame
|
||||
{
|
||||
KeyFrame(KeyFrameTarget argTarget, Vector3 argValue, float argTime)
|
||||
{
|
||||
Target = argTarget;
|
||||
Value = argValue;
|
||||
Time = argTime;
|
||||
}
|
||||
|
||||
KeyFrameTarget Target;
|
||||
Vector3 Value;
|
||||
float Time;
|
||||
}
|
||||
|
||||
public interface ITransformationAnimation
|
||||
{
|
||||
float Duration { get; }
|
||||
|
||||
void AddKeyFrame(KeyFrame argKeyFrame);
|
||||
Matrix GetTransformationAtTime(float argT); // [0.0] - [1.0]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user