Three.js 622 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. var THREE = THREE || {};
  5. if ( ! self.Int32Array ) {
  6. self.Int32Array = Array;
  7. self.Float32Array = Array;
  8. }
  9. // Provides requestAnimationFrame in a cross browser way.
  10. // http://paulirish.com/2011/requestanimationframe-for-smart-animating/
  11. if ( ! self.requestAnimationFrame ) {
  12. self.requestAnimationFrame = ( function () {
  13. return self.webkitRequestAnimationFrame ||
  14. self.mozRequestAnimationFrame ||
  15. self.oRequestAnimationFrame ||
  16. self.msRequestAnimationFrame ||
  17. function ( callback, element ) {
  18. self.setTimeout( callback, 1000 / 60 );
  19. };
  20. } )();
  21. }
粤ICP备19079148号