MorphShapes.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 a set of morph shapes, used for morph target animation. Each morph shape contains a single possible shape
  12. /// that can be added on top of the base shape in order to create the animation.
  13. /// </summary>
  14. public class MorphShapes : ScriptObject
  15. {
  16. /// <summary>
  17. /// Constructor for internal runtime use only.
  18. /// </summary>
  19. private MorphShapes()
  20. { }
  21. /// <summary>
  22. /// Returns a list of names of all available morph shapes.
  23. /// </summary>
  24. public string[] Shapes
  25. {
  26. get { return Internal_GetShapes(mCachedPtr); }
  27. }
  28. [MethodImpl(MethodImplOptions.InternalCall)]
  29. private static extern string[] Internal_GetShapes(IntPtr instance);
  30. }
  31. /** @} */
  32. }