class TextureLoader
extends Loader
import { TextureLoader } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";
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.
Constructors
new
TextureLoader(manager?: LoadingManager)Methods
load(): Texture
url: string,
onLoad?: (texture: Texture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,