BasisTextureLoader.d.ts 862 字节
Newer Older
1
import {
G
Garrett Johnson 已提交
2 3 4 5
	CompressedTexture,
	Loader,
	LoadingManager,
	WebGLRenderer
6 7
} from '../../../src/Three';

8
export class BasisTextureLoader extends Loader {
9

G
Garrett Johnson 已提交
10 11 12 13 14 15 16
	constructor( manager?: LoadingManager );
	transcoderBinary: ArrayBuffer | null;
	transcoderPath: string;
	transcoderPending: Promise<void> | null;

	workerConfig: {
		format: number;
S
shrekshao 已提交
17
		astcSupported: boolean;
G
Garrett Johnson 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30 31
		etcSupported: boolean;
		dxtSupported: boolean;
		pvrtcSupported: boolean;
	}
	workerLimit: number;
	workerNextTaskID: number;
	workerPool: object[];
	workerSourceURL: string;

	detectSupport( renderer: WebGLRenderer ): this;
	dispose(): void;
	load( url: string, onLoad: ( texture: CompressedTexture ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
	setTranscoderPath( path: string ): this;
	setWorkerLimit( workerLimit: number ): this;
32 33

}