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/ObjectLoader.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/loaders/ObjectLoader.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[]