import { WebGLRenderer , SceneGraph } from "../pkg/wasm_scene" ; import { WasmSceneGraph } from "./wasm-scene-graph" ; export class Renderer { constructor ( canvas ) { this . wasmRenderer = WebGLRenderer . new ( canvas ) ; } private wasmRenderer : WebGLRenderer ; render ( scene ) { this . wasmRenderer . render ( scene . getWasm ( ) ) ; } }