Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>TextureLoader

A simple transformation of three.js for use within a Deno workflow
Go to Latest
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(
url: string,
onLoad?: (texture: Texture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): Texture