TKeyframe.generated.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>Animation keyframe, represented as an endpoint of a cubic hermite spline.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct KeyFrameInt
  12. {
  13. /// <summary>Value of the key.</summary>
  14. public int value;
  15. /// <summary>Position of the key along the animation spline.</summary>
  16. public float time;
  17. }
  18. /** @} */
  19. /** @addtogroup Animation
  20. * @{
  21. */
  22. /// <summary>Animation keyframe, represented as an endpoint of a cubic hermite spline.</summary>
  23. [StructLayout(LayoutKind.Sequential), SerializeObject]
  24. public partial struct KeyFrame
  25. {
  26. /// <summary>Value of the key.</summary>
  27. public float value;
  28. /// <summary>Input tangent (going from the previous key to this one) of the key.</summary>
  29. public float inTangent;
  30. /// <summary>Output tangent (going from this key to next one) of the key.</summary>
  31. public float outTangent;
  32. /// <summary>Position of the key along the animation spline.</summary>
  33. public float time;
  34. }
  35. /** @} */
  36. /** @addtogroup Animation
  37. * @{
  38. */
  39. /// <summary>Animation keyframe, represented as an endpoint of a cubic hermite spline.</summary>
  40. [StructLayout(LayoutKind.Sequential), SerializeObject]
  41. public partial struct KeyFrameVec3
  42. {
  43. /// <summary>Value of the key.</summary>
  44. public Vector3 value;
  45. /// <summary>Input tangent (going from the previous key to this one) of the key.</summary>
  46. public Vector3 inTangent;
  47. /// <summary>Output tangent (going from this key to next one) of the key.</summary>
  48. public Vector3 outTangent;
  49. /// <summary>Position of the key along the animation spline.</summary>
  50. public float time;
  51. }
  52. /** @} */
  53. /** @addtogroup Animation
  54. * @{
  55. */
  56. /// <summary>Animation keyframe, represented as an endpoint of a cubic hermite spline.</summary>
  57. [StructLayout(LayoutKind.Sequential), SerializeObject]
  58. public partial struct KeyFrameVec2
  59. {
  60. /// <summary>Value of the key.</summary>
  61. public Vector2 value;
  62. /// <summary>Input tangent (going from the previous key to this one) of the key.</summary>
  63. public Vector2 inTangent;
  64. /// <summary>Output tangent (going from this key to next one) of the key.</summary>
  65. public Vector2 outTangent;
  66. /// <summary>Position of the key along the animation spline.</summary>
  67. public float time;
  68. }
  69. /** @} */
  70. /** @addtogroup Animation
  71. * @{
  72. */
  73. /// <summary>Animation keyframe, represented as an endpoint of a cubic hermite spline.</summary>
  74. [StructLayout(LayoutKind.Sequential), SerializeObject]
  75. public partial struct KeyFrameQuat
  76. {
  77. /// <summary>Value of the key.</summary>
  78. public Quaternion value;
  79. /// <summary>Input tangent (going from the previous key to this one) of the key.</summary>
  80. public Quaternion inTangent;
  81. /// <summary>Output tangent (going from this key to next one) of the key.</summary>
  82. public Quaternion outTangent;
  83. /// <summary>Position of the key along the animation spline.</summary>
  84. public float time;
  85. }
  86. /** @} */
  87. }