Source: Scene/ModelAnimationLoop.js

  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. * @exports ModelAnimationLoop
  11. *
  12. * @see ModelAnimationCollection#add
  13. */
  14. var ModelAnimationLoop = {
  15. /**
  16. * Play the animation once; do not loop it.
  17. *
  18. * @type {Number}
  19. * @constant
  20. */
  21. NONE : 0,
  22. /**
  23. * Loop the animation playing it from the start immediately after it stops.
  24. *
  25. * @type {Number}
  26. * @constant
  27. */
  28. REPEAT : 1,
  29. /**
  30. * Loop the animation. First, playing it forward, then in reverse, then forward, and so on.
  31. *
  32. * @type {Number}
  33. * @constant
  34. */
  35. MIRRORED_REPEAT : 2
  36. };
  37. return freezeObject(ModelAnimationLoop);
  38. });