AnimationCurves.generated.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>A set of animation curves representing translation/rotation/scale and generic animation.</summary>
  10. public partial class AnimationCurves : ScriptObject
  11. {
  12. private AnimationCurves(bool __dummy0) { }
  13. public AnimationCurves()
  14. {
  15. Internal_AnimationCurves(this);
  16. }
  17. /// <summary>Curves for animating scene object's position.</summary>
  18. public NamedVector3Curve[] Position
  19. {
  20. get { return Internal_getPositionCurves(mCachedPtr); }
  21. set { Internal_setPositionCurves(mCachedPtr, value); }
  22. }
  23. /// <summary>Curves for animating scene object's rotation.</summary>
  24. public NamedQuaternionCurve[] Rotation
  25. {
  26. get { return Internal_getRotationCurves(mCachedPtr); }
  27. set { Internal_setRotationCurves(mCachedPtr, value); }
  28. }
  29. /// <summary>Curves for animating scene object's scale.</summary>
  30. public NamedVector3Curve[] Scale
  31. {
  32. get { return Internal_getScaleCurves(mCachedPtr); }
  33. set { Internal_setScaleCurves(mCachedPtr, value); }
  34. }
  35. /// <summary>Curves for animating generic component properties.</summary>
  36. public NamedFloatCurve[] Generic
  37. {
  38. get { return Internal_getGenericCurves(mCachedPtr); }
  39. set { Internal_setGenericCurves(mCachedPtr, value); }
  40. }
  41. /// <summary>Registers a new curve used for animating position.</summary>
  42. /// <param name="name">
  43. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  44. /// </param>
  45. /// <param name="curve">Curve to add to the clip.</param>
  46. public void AddPositionCurve(string name, Vector3Curve curve)
  47. {
  48. Internal_addPositionCurve(mCachedPtr, name, curve);
  49. }
  50. /// <summary>Registers a new curve used for animating rotation.</summary>
  51. /// <param name="name">
  52. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  53. /// </param>
  54. /// <param name="curve">Curve to add to the clip.</param>
  55. public void AddRotationCurve(string name, QuaternionCurve curve)
  56. {
  57. Internal_addRotationCurve(mCachedPtr, name, curve);
  58. }
  59. /// <summary>Registers a new curve used for animating scale.</summary>
  60. /// <param name="name">
  61. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  62. /// </param>
  63. /// <param name="curve">Curve to add to the clip.</param>
  64. public void AddScaleCurve(string name, Vector3Curve curve)
  65. {
  66. Internal_addScaleCurve(mCachedPtr, name, curve);
  67. }
  68. /// <summary>Registers a new curve used for generic animation.</summary>
  69. /// <param name="name">
  70. /// Unique name of the curve. This can be used for retrieving the value of the curve from animation.
  71. /// </param>
  72. /// <param name="curve">Curve to add to the clip.</param>
  73. public void AddGenericCurve(string name, AnimationCurve curve)
  74. {
  75. Internal_addGenericCurve(mCachedPtr, name, curve);
  76. }
  77. /// <summary>Removes an existing curve from the clip.</summary>
  78. public void RemovePositionCurve(string name)
  79. {
  80. Internal_removePositionCurve(mCachedPtr, name);
  81. }
  82. /// <summary>Removes an existing curve from the clip.</summary>
  83. public void RemoveRotationCurve(string name)
  84. {
  85. Internal_removeRotationCurve(mCachedPtr, name);
  86. }
  87. /// <summary>Removes an existing curve from the clip.</summary>
  88. public void RemoveScaleCurve(string name)
  89. {
  90. Internal_removeScaleCurve(mCachedPtr, name);
  91. }
  92. /// <summary>Removes an existing curve from the clip.</summary>
  93. public void RemoveGenericCurve(string name)
  94. {
  95. Internal_removeGenericCurve(mCachedPtr, name);
  96. }
  97. [MethodImpl(MethodImplOptions.InternalCall)]
  98. private static extern void Internal_AnimationCurves(AnimationCurves managedInstance);
  99. [MethodImpl(MethodImplOptions.InternalCall)]
  100. private static extern void Internal_addPositionCurve(IntPtr thisPtr, string name, Vector3Curve curve);
  101. [MethodImpl(MethodImplOptions.InternalCall)]
  102. private static extern void Internal_addRotationCurve(IntPtr thisPtr, string name, QuaternionCurve curve);
  103. [MethodImpl(MethodImplOptions.InternalCall)]
  104. private static extern void Internal_addScaleCurve(IntPtr thisPtr, string name, Vector3Curve curve);
  105. [MethodImpl(MethodImplOptions.InternalCall)]
  106. private static extern void Internal_addGenericCurve(IntPtr thisPtr, string name, AnimationCurve curve);
  107. [MethodImpl(MethodImplOptions.InternalCall)]
  108. private static extern void Internal_removePositionCurve(IntPtr thisPtr, string name);
  109. [MethodImpl(MethodImplOptions.InternalCall)]
  110. private static extern void Internal_removeRotationCurve(IntPtr thisPtr, string name);
  111. [MethodImpl(MethodImplOptions.InternalCall)]
  112. private static extern void Internal_removeScaleCurve(IntPtr thisPtr, string name);
  113. [MethodImpl(MethodImplOptions.InternalCall)]
  114. private static extern void Internal_removeGenericCurve(IntPtr thisPtr, string name);
  115. [MethodImpl(MethodImplOptions.InternalCall)]
  116. private static extern NamedVector3Curve[] Internal_getPositionCurves(IntPtr thisPtr);
  117. [MethodImpl(MethodImplOptions.InternalCall)]
  118. private static extern void Internal_setPositionCurves(IntPtr thisPtr, NamedVector3Curve[] value);
  119. [MethodImpl(MethodImplOptions.InternalCall)]
  120. private static extern NamedQuaternionCurve[] Internal_getRotationCurves(IntPtr thisPtr);
  121. [MethodImpl(MethodImplOptions.InternalCall)]
  122. private static extern void Internal_setRotationCurves(IntPtr thisPtr, NamedQuaternionCurve[] value);
  123. [MethodImpl(MethodImplOptions.InternalCall)]
  124. private static extern NamedVector3Curve[] Internal_getScaleCurves(IntPtr thisPtr);
  125. [MethodImpl(MethodImplOptions.InternalCall)]
  126. private static extern void Internal_setScaleCurves(IntPtr thisPtr, NamedVector3Curve[] value);
  127. [MethodImpl(MethodImplOptions.InternalCall)]
  128. private static extern NamedFloatCurve[] Internal_getGenericCurves(IntPtr thisPtr);
  129. [MethodImpl(MethodImplOptions.InternalCall)]
  130. private static extern void Internal_setGenericCurves(IntPtr thisPtr, NamedFloatCurve[] value);
  131. }
  132. /** @} */
  133. }