From da89087ae6673dd5e6056bf51f8969c87243e9f7 Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Sun, 11 Oct 2020 22:55:30 +0200 Subject: [PATCH] Add power 2 warning --- .../graphics-library/texture/texture-options.ts | 8 ++++++++ src/helper/array.ts | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/graphics/graphics-library/texture/texture-options.ts b/src/graphics/graphics-library/texture/texture-options.ts index 46f8d1b..0b8d62f 100644 --- a/src/graphics/graphics-library/texture/texture-options.ts +++ b/src/graphics/graphics-library/texture/texture-options.ts @@ -1,6 +1,14 @@ export enum WrapOptions { CLAMP_TO_EDGE = 'CLAMP_TO_EDGE', + + /** + * On WebGL it only work with power of 2 texture sizes. + */ REPEAT = 'REPEAT', + + /** + * On WebGL it only work with power of 2 texture sizes. + */ MIRRORED_REPEAT = 'MIRRORED_REPEAT', } diff --git a/src/helper/array.ts b/src/helper/array.ts index d73a76d..05b416b 100644 --- a/src/helper/array.ts +++ b/src/helper/array.ts @@ -1,16 +1,3 @@ -/** @internal */ -declare global { - interface Array { - x: number; - y: number; - } - - interface Float32Array { - x: number; - y: number; - } -} - /** @internal */ const setIndexAlias = (name: string, index: number, type: any) => { if (!Object.prototype.hasOwnProperty.call(type.prototype, name)) {