UNPKG

playcanvas

Version:

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

16 lines (15 loc) 466 B
import { GlbAnimationParser } from "../parsers/glb-animation.js"; import { JsonAnimationParser } from "../parsers/json-animation.js"; import { ResourceHandler } from "./handler.js"; class AnimationHandler extends ResourceHandler { constructor(app) { super(app, "animation"); this.device = app.graphicsDevice; this.assets = app.assets; this.addParser(new JsonAnimationParser()); this.addParser(new GlbAnimationParser()); } } export { AnimationHandler };