port to OOP

This commit is contained in:
41666 2023-10-01 11:43:31 -04:00
parent 7e8b1ad477
commit e33936a86b
15 changed files with 918 additions and 158 deletions

View file

@ -1,8 +1,8 @@
export class Shader {
constructor(gl, core) {
this.gl = gl;
this.core = core;
this.program = gl.createProgram();
constructor(app) {
this.gl = app.gl;
this.app = app;
this.program = this.gl.createProgram();
this.startTime = Date.now();
}