1 | import { Loader } from './Loader';
|
2 | import { LoadingManager } from './LoadingManager';
|
3 | import { Texture } from './../textures/Texture';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export class TextureLoader extends Loader {
|
10 | constructor(manager?: LoadingManager);
|
11 |
|
12 | load(
|
13 | url: string,
|
14 | onLoad?: (texture: Texture) => void,
|
15 | onProgress?: (event: ProgressEvent) => void,
|
16 | onError?: (event: ErrorEvent) => void,
|
17 | ): Texture;
|
18 |
|
19 | loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Texture>;
|
20 | }
|