智慧水务管理系统 - 精河县供水工程综合管理平台

TextureWrap.js 517B

1234567891011121314151617181920212223
  1. import WebGLConstants from "../Core/WebGLConstants.js";
  2. /**
  3. * @enum {number}
  4. * @private
  5. */
  6. const 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 (
  12. textureWrap === TextureWrap.CLAMP_TO_EDGE ||
  13. textureWrap === TextureWrap.REPEAT ||
  14. textureWrap === TextureWrap.MIRRORED_REPEAT
  15. );
  16. },
  17. };
  18. Object.freeze(TextureWrap);
  19. export default TextureWrap;