CanvasTexture.d.ts 910 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Texture } from './Texture';
  2. import {
  3. Mapping,
  4. Wrapping,
  5. TextureFilter,
  6. PixelFormat,
  7. TextureDataType,
  8. } from '../constants';
  9. export class CanvasTexture extends Texture {
  10. /**
  11. * @param canvas
  12. * @param [format=THREE.RGBAFormat]
  13. * @param [type=THREE.UnsignedByteType]
  14. * @param [mapping=THREE.Texture.DEFAULT_MAPPING]
  15. * @param [wrapS=THREE.ClampToEdgeWrapping]
  16. * @param [wrapT=THREE.ClampToEdgeWrapping]
  17. * @param [magFilter=THREE.LinearFilter]
  18. * @param [minFilter=THREE.LinearMipmapLinearFilter]
  19. * @param [anisotropy=1]
  20. * @param [encoding=THREE.LinearEncoding]
  21. */
  22. constructor(
  23. canvas: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement,
  24. mapping?: Mapping,
  25. wrapS?: Wrapping,
  26. wrapT?: Wrapping,
  27. magFilter?: TextureFilter,
  28. minFilter?: TextureFilter,
  29. format?: PixelFormat,
  30. type?: TextureDataType,
  31. anisotropy?: number
  32. );
  33. readonly isCanvasTexture: true;
  34. }
粤ICP备19079148号