playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
28 lines (27 loc) • 1 kB
TypeScript
/**
* @import { AppBase } from '../app-base.js'
* @import { ResourceHandlerCallback } from '../handlers/handler.js'
*/
export class GSplatOctreeParser {
/**
* @param {AppBase} app - The app instance.
*/
constructor(app: AppBase);
/** @type {AppBase} */
app: AppBase;
canParse(context: any): boolean;
/**
* @param {object} url - The URL of the resource to load.
* @param {string} url.load - The URL to use for loading the resource.
* @param {string} url.original - The original URL useful for identifying the resource type.
* @param {ResourceHandlerCallback} callback - The callback used when
* the resource is loaded or an error occurs.
* @param {object} asset - Container asset.
*/
load(url: {
load: string;
original: string;
}, callback: ResourceHandlerCallback, asset: object): void;
}
import type { AppBase } from '../app-base.js';
import type { ResourceHandlerCallback } from '../handlers/handler.js';