Home Reference Source Repository

js/SpriteKit/SKTextureFilteringMode.js

  1. 'use strict'
  2.  
  3. /**
  4. * Texture filtering modes to use when the texture is drawn in a size other than its native size.
  5. * @typedef {Object} SKTextureFilteringMode
  6. * @property {number} nearest - Each pixel is drawn using the nearest point in the texture. This mode is faster, but the results are often pixelated.
  7. * @property {number} linear - Each pixel is drawn by using a linear filter of multiple texels in the texture. This mode produces higher quality results but may be slower.
  8. * @see https://developer.apple.com/documentation/spritekit/sktexturefilteringmode
  9. */
  10. const SKTextureFilteringMode = {
  11. nearest: 0,
  12. linear: 1
  13. }
  14.  
  15. export default SKTextureFilteringMode