ImageUtils.d.ts 740 B

12345678910111213141516171819202122232425262728293031323334
  1. import { Mapping } from '../constants';
  2. import { Texture } from '../textures/Texture';
  3. export namespace ImageUtils {
  4. export function getDataURL(
  5. image: any,
  6. ): string;
  7. /**
  8. * @deprecated
  9. */
  10. export let crossOrigin: string;
  11. /**
  12. * @deprecated Use {@link TextureLoader THREE.TextureLoader()} instead.
  13. */
  14. export function loadTexture(
  15. url: string,
  16. mapping?: Mapping,
  17. onLoad?: ( texture: Texture ) => void,
  18. onError?: ( message: string ) => void
  19. ): Texture;
  20. /**
  21. * @deprecated Use {@link CubeTextureLoader THREE.CubeTextureLoader()} instead.
  22. */
  23. export function loadTextureCube(
  24. array: string[],
  25. mapping?: Mapping,
  26. onLoad?: ( texture: Texture ) => void,
  27. onError?: ( message: string ) => void
  28. ): Texture;
  29. }