DataTexture.d.ts 561 B

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