UNPKG

playcanvas

Version:

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

15 lines (14 loc) 306 B
import { BinaryParser } from "../parsers/binary.js"; import { ResourceHandler } from "./handler.js"; class BinaryHandler extends ResourceHandler { constructor(app) { super(app, "binary"); this.addParser(new BinaryParser()); } openBinary(data) { return data.buffer; } } export { BinaryHandler };