Spaces:
Running
Running
File size: 877 Bytes
6cd9596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import { LoadingManager } from './LoadingManager';
import { Texture } from './../textures/Texture';
/**
* Class for loading a texture.
* Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.
*/
export class TextureLoader {
constructor(manager?: LoadingManager);
manager: LoadingManager;
crossOrigin: string;
withCredentials: string;
path: string;
/**
* Begin loading from url
*
* @param url
*/
load(
url: string,
onLoad?: (texture: Texture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void
): Texture;
setCrossOrigin(crossOrigin: string): TextureLoader;
setWithCredentials(value: string): TextureLoader;
setPath(path: string): TextureLoader;
}
|