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.ObjectLoader

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

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
loadAsync<ObjectType extends Object3D>(url: string, onProgress?: (event: ProgressEvent) => void): Promise<ObjectType>
parse<T extends Object3D>(json: any, onLoad?: (object: Object3D) => void): T
parseAsync<T extends Object3D>(json: any): Promise<T>
parseGeometries(json: any): { [key: string]: InstancedBufferGeometry | BufferGeometry; }
parseImages(json: any, onLoad: () => void): { [key: string]: HTMLImageElement; }
parseImagesAsync(json: any): Promise<{ [key: string]: HTMLImageElement; }>
parseMaterials(json: any, textures: Texture[]): Material[]
parseObject<T extends Object3D>(
data: any,
geometries: any[],
materials: Material[],
animations: AnimationClip[],
): T
parseTextures(json: any, images: any): Texture[]