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/ImageLoader.d.ts>ImageLoader

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class ImageLoader
extends Loader
import { ImageLoader } from "https://deno.land/x/threejs_4_deno@v121/src/loaders/ImageLoader.d.ts";

A loader for loading an image. 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
ImageLoader(manager?: LoadingManager)

Methods

load(
url: string,
onLoad?: (image: HTMLImageElement) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): HTMLImageElement