AnimationClip.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. namespace BansheeEngine
  6. {
  7. /** @addtogroup Animation
  8. * @{
  9. */
  10. /// <summary>
  11. /// Contains animation curves for translation/rotation/scale of scene object/skeleton bones, as well as curves for
  12. /// generic property animation.
  13. /// </summary>
  14. public class AnimationClip : Resource
  15. {
  16. /// <summary>
  17. /// A set of all curves stored in the animation clip.
  18. /// </summary>
  19. public AnimationCurves Curves
  20. {
  21. get { return Internal_GetAnimationCurves(mCachedPtr); }
  22. set { Internal_SetAnimationCurves(mCachedPtr, value); }
  23. }
  24. /// <summary>
  25. /// Constructor for internal use by the runtime.
  26. /// </summary>
  27. private AnimationClip()
  28. { }
  29. [MethodImpl(MethodImplOptions.InternalCall)]
  30. private static extern AnimationCurves Internal_GetAnimationCurves(IntPtr thisPtr);
  31. [MethodImpl(MethodImplOptions.InternalCall)]
  32. private static extern void Internal_SetAnimationCurves(IntPtr thisPtr, AnimationCurves curves);
  33. }
  34. /** @} */
  35. }