using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace BansheeEngine { /** @addtogroup Animation * @{ */ /// Animation keyframe, represented as an endpoint of a cubic hermite spline. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct KeyFrameInt { /// Value of the key. public int value; /// Position of the key along the animation spline. public float time; } /** @} */ /** @addtogroup Animation * @{ */ /// Animation keyframe, represented as an endpoint of a cubic hermite spline. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct KeyFrame { /// Value of the key. public float value; /// Input tangent (going from the previous key to this one) of the key. public float inTangent; /// Output tangent (going from this key to next one) of the key. public float outTangent; /// Position of the key along the animation spline. public float time; } /** @} */ /** @addtogroup Animation * @{ */ /// Animation keyframe, represented as an endpoint of a cubic hermite spline. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct KeyFrameVec3 { /// Value of the key. public Vector3 value; /// Input tangent (going from the previous key to this one) of the key. public Vector3 inTangent; /// Output tangent (going from this key to next one) of the key. public Vector3 outTangent; /// Position of the key along the animation spline. public float time; } /** @} */ /** @addtogroup Animation * @{ */ /// Animation keyframe, represented as an endpoint of a cubic hermite spline. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct KeyFrameQuat { /// Value of the key. public Quaternion value; /// Input tangent (going from the previous key to this one) of the key. public Quaternion inTangent; /// Output tangent (going from this key to next one) of the key. public Quaternion outTangent; /// Position of the key along the animation spline. public float time; } /** @} */ }