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