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

x/remapper/src/deps.ts>three.TextureLoader

A framework for Beat Saber map scripting.
Go to Latest
class three.TextureLoader
extends Loader
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { TextureLoader } = three;

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
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Texture>