UNPKG

969 BTypeScriptView Raw
1import { Texture } from './Texture';
2import { Mapping, Wrapping, TextureFilter, PixelFormat, TextureDataType } from '../constants';
3
4export class VideoTexture extends Texture {
5 /**
6 * @param video
7 * @param [mapping=THREE.Texture.DEFAULT_MAPPING]
8 * @param [wrapS=THREE.ClampToEdgeWrapping]
9 * @param [wrapT=THREE.ClampToEdgeWrapping]
10 * @param [magFilter=THREE.LinearFilter]
11 * @param [minFilter=THREE.LinearFilter]
12 * @param [format=THREE.RGBFormat]
13 * @param [type=THREE.UnsignedByteType]
14 * @param [anisotropy=1]
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}