starry / backend /libs /three /loaders /CompressedTextureLoader.d.ts
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { Loader } from './Loader';
import { LoadingManager } from './LoadingManager';
import { CompressedTexture } from './../textures/CompressedTexture';
export class CompressedTextureLoader extends Loader {
constructor(manager?: LoadingManager);
load(
url: string,
onLoad: (texture: CompressedTexture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void
): CompressedTexture;
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<CompressedTexture>;
}