ModelAnimationLoop.js 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*global define*/
  2. define([
  3. '../Core/freezeObject'
  4. ], function(
  5. freezeObject) {
  6. "use strict";
  7. /**
  8. * Determines if and how a glTF animation is looped.
  9. *
  10. * @namespace
  11. * @alias ModelAnimationLoop
  12. *
  13. * @see ModelAnimationCollection#add
  14. */
  15. var ModelAnimationLoop = {
  16. /**
  17. * Play the animation once; do not loop it.
  18. *
  19. * @type {Number}
  20. * @constant
  21. */
  22. NONE : 0,
  23. /**
  24. * Loop the animation playing it from the start immediately after it stops.
  25. *
  26. * @type {Number}
  27. * @constant
  28. */
  29. REPEAT : 1,
  30. /**
  31. * Loop the animation. First, playing it forward, then in reverse, then forward, and so on.
  32. *
  33. * @type {Number}
  34. * @constant
  35. */
  36. MIRRORED_REPEAT : 2
  37. };
  38. return freezeObject(ModelAnimationLoop);
  39. });