Files

32 lines
460 B
JavaScript
Raw Permalink Normal View History

2025-12-31 14:22:45 +01:00
import { Memory } from "./Memory.js";
import { RenderSystem } from "./RenderSystem.js";
export class Engine {
constructor( device ) {
this.device = device;
this.memory = new Memory( "engine" );
this.pipelines = [];
this.renderSystem = null;
}
addPipeline( p ) {
this.pipelines.push( p );
}
createRenderSystem( canvas ) {
this.renderSystem = new RenderSystem( this.device, canvas );
return this.renderSystem;
}
}