UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

30 lines (29 loc) 1.1 kB
/** * @import { AppBase } from '../app-base.js' * @import { ResourceHandlerCallback } from '../handlers/handler.js' */ export class GSplatOctreeParser { /** * @param {AppBase} app - The app instance. * @param {number} maxRetries - Maximum amount of retries. */ constructor(app: AppBase, maxRetries: number); /** @type {AppBase} */ app: AppBase; /** @type {number} */ maxRetries: number; /** * @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';