Add power 2 warning
This commit is contained in:
parent
d15874611d
commit
da89087ae6
2 changed files with 8 additions and 13 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
export enum WrapOptions {
|
export enum WrapOptions {
|
||||||
CLAMP_TO_EDGE = 'CLAMP_TO_EDGE',
|
CLAMP_TO_EDGE = 'CLAMP_TO_EDGE',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On WebGL it only work with power of 2 texture sizes.
|
||||||
|
*/
|
||||||
REPEAT = 'REPEAT',
|
REPEAT = 'REPEAT',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On WebGL it only work with power of 2 texture sizes.
|
||||||
|
*/
|
||||||
MIRRORED_REPEAT = 'MIRRORED_REPEAT',
|
MIRRORED_REPEAT = 'MIRRORED_REPEAT',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
/** @internal */
|
|
||||||
declare global {
|
|
||||||
interface Array<T> {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Float32Array {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
const setIndexAlias = (name: string, index: number, type: any) => {
|
const setIndexAlias = (name: string, index: number, type: any) => {
|
||||||
if (!Object.prototype.hasOwnProperty.call(type.prototype, name)) {
|
if (!Object.prototype.hasOwnProperty.call(type.prototype, name)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue