Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/loaders/TextureLoader.js>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/loaders/TextureLoader.js";

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