Add existing to tracked
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
import WebGLConstants from "../Core/WebGLConstants.js";
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
* @private
|
||||
*/
|
||||
const TextureWrap = {
|
||||
CLAMP_TO_EDGE: WebGLConstants.CLAMP_TO_EDGE,
|
||||
REPEAT: WebGLConstants.REPEAT,
|
||||
MIRRORED_REPEAT: WebGLConstants.MIRRORED_REPEAT,
|
||||
|
||||
validate: function (textureWrap) {
|
||||
return (
|
||||
textureWrap === TextureWrap.CLAMP_TO_EDGE ||
|
||||
textureWrap === TextureWrap.REPEAT ||
|
||||
textureWrap === TextureWrap.MIRRORED_REPEAT
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
Object.freeze(TextureWrap);
|
||||
|
||||
export default TextureWrap;
|
||||
Reference in New Issue
Block a user