babylon.sprite.d.ts 921 B

12345678910111213141516171819202122232425262728
  1. declare module BABYLON {
  2. class Sprite {
  3. public name: string;
  4. public position: Vector3;
  5. public color: Color4;
  6. public size: number;
  7. public angle: number;
  8. public cellIndex: number;
  9. public invertU: number;
  10. public invertV: number;
  11. public disposeWhenFinishedAnimating: boolean;
  12. public animations: Animation[];
  13. private _animationStarted;
  14. private _loopAnimation;
  15. private _fromIndex;
  16. private _toIndex;
  17. private _delay;
  18. private _direction;
  19. private _frameCount;
  20. private _manager;
  21. private _time;
  22. constructor(name: string, manager: SpriteManager);
  23. public playAnimation(from: number, to: number, loop: boolean, delay: number): void;
  24. public stopAnimation(): void;
  25. public _animate(deltaTime: number): void;
  26. public dispose(): void;
  27. }
  28. }