mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 07:18:29 +08:00
17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
import { WebglRenderer } from "../../core/rendering/webgl/WebglRenderer";
|
|
import { ModelStore } from "../stores/ModelStore";
|
|
import { Disposer } from "../../core/observable/Disposer";
|
|
|
|
export class ModelWebglRenderer extends WebglRenderer {
|
|
private readonly disposer = new Disposer();
|
|
|
|
constructor(private readonly store: ModelStore) {
|
|
super();
|
|
}
|
|
|
|
dispose(): void {
|
|
super.dispose();
|
|
this.disposer.dispose();
|
|
}
|
|
}
|