1 | import { Texture } from './Texture';
|
2 | import { Mapping, Wrapping, TextureFilter, PixelFormat, TextureDataType } from '../constants';
|
3 |
|
4 | export class VideoTexture extends Texture {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | constructor(
|
17 | video: HTMLVideoElement,
|
18 | mapping?: Mapping,
|
19 | wrapS?: Wrapping,
|
20 | wrapT?: Wrapping,
|
21 | magFilter?: TextureFilter,
|
22 | minFilter?: TextureFilter,
|
23 | format?: PixelFormat,
|
24 | type?: TextureDataType,
|
25 | anisotropy?: number,
|
26 | );
|
27 |
|
28 | readonly isVideoTexture: true;
|
29 |
|
30 | /**
|
31 | * @default false
|
32 | */
|
33 | generateMipmaps: boolean;
|
34 | }
|