Spaces:
Running
Running
File size: 606 Bytes
6cd9596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import { Texture } from './Texture';
import {
Mapping,
Wrapping,
TextureFilter,
PixelFormat,
TextureDataType,
TextureEncoding,
} from '../constants';
import { TypedArray } from '../polyfills';
export class DataTexture extends Texture {
constructor(
data: ArrayBuffer | TypedArray,
width: number,
height: number,
format?: PixelFormat,
type?: TextureDataType,
mapping?: Mapping,
wrapS?: Wrapping,
wrapT?: Wrapping,
magFilter?: TextureFilter,
minFilter?: TextureFilter,
anisotropy?: number,
encoding?: TextureEncoding
);
image: ImageData;
}
|