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

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

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

Constructors

new
ObjectLoader(manager?: LoadingManager)

Methods

load(
url: string,
onLoad?: <ObjectType extends Object3D>(object: ObjectType) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: Error | ErrorEvent) => void,
): void
parse<T extends Object3D>(json: any, onLoad?: (object: Object3D) => void): T
parseGeometries(json: any): any[]
parseImages(json: any, onLoad: () => void): { [key: string]: HTMLImageElement; }
parseMaterials(json: any, textures: Texture[]): Material[]
parseObject<T extends Object3D>(
data: any,
geometries: any[],
materials: Material[],
): T
parseTextures(json: any, images: any): Texture[]