first commit

This commit is contained in:
2025-12-31 14:22:45 +01:00
commit c78a860098
73 changed files with 30137 additions and 0 deletions

31
framework/Engine.js Normal file
View File

@@ -0,0 +1,31 @@
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;
}
}