TextureWrap.js 615 B

123456789101112131415161718
  1. import freezeObject from '../Core/freezeObject.js';
  2. import WebGLConstants from '../Core/WebGLConstants.js';
  3. /**
  4. * @private
  5. */
  6. var TextureWrap = {
  7. CLAMP_TO_EDGE : WebGLConstants.CLAMP_TO_EDGE,
  8. REPEAT : WebGLConstants.REPEAT,
  9. MIRRORED_REPEAT : WebGLConstants.MIRRORED_REPEAT,
  10. validate : function(textureWrap) {
  11. return ((textureWrap === TextureWrap.CLAMP_TO_EDGE) ||
  12. (textureWrap === TextureWrap.REPEAT) ||
  13. (textureWrap === TextureWrap.MIRRORED_REPEAT));
  14. }
  15. };
  16. export default freezeObject(TextureWrap);