Skip to content

Commit

Permalink
refactor: ♻️ split methods in SensorFovMesh class
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 11, 2024
1 parent f4fc171 commit 3a84395
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 165 deletions.
4 changes: 2 additions & 2 deletions src/singletons/draw-manager/custom-mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export abstract class CustomMesh {
this.gl_ = gl;

this.program_ = new WebGlProgramHelper(this.gl_, this.shaders_.vert, this.shaders_.frag, this.attribs_, this.uniforms_).program;
this.createMesh_();
this.initGeometry_();
this.initBuffers_();
this.initVao_();

Expand Down Expand Up @@ -106,7 +106,7 @@ export abstract class CustomMesh {
this.sortedIndices = buckets.reduceRight((acc, bucket) => acc.concat(bucket), []);
}

abstract createMesh_(): void;
abstract initGeometry_(): void;

protected initVao_() {
const gl = this.gl_;
Expand Down
Loading

0 comments on commit 3a84395

Please sign in to comment.