Skip to content

Commit

Permalink
merge: from origin main
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Apr 8, 2024
1 parent 269d04e commit 59447f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/js/jagex2/graphics/Canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export const jpegCanvas: HTMLCanvasElement = document.createElement('canvas');
export const jpegImg: HTMLImageElement = document.createElement('img');
export const jpeg2d: CanvasRenderingContext2D = jpegCanvas.getContext('2d', {willReadFrequently: true})!;
export const glCanvas: HTMLCanvasElement = document.createElement('canvas');
export const gl: WebGL2RenderingContext =
canvas.getContext('webgl2',{willReadFrequently: true})! as WebGL2RenderingContext;
export const gl: WebGL2RenderingContext = canvas.getContext('webgl2', {willReadFrequently: true})! as WebGL2RenderingContext;
14 changes: 7 additions & 7 deletions src/js/jagex2/graphics/GLBuffer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default class GLBuffer {
name: string;
glBufferId: WebGLBuffer = -1;
size: number = -1;
constructor(name: string) {
this.name = name;
}
}
name: string;
glBufferId: WebGLBuffer = -1;
size: number = -1;
constructor(name: string) {
this.name = name;
}
}
4 changes: 2 additions & 2 deletions src/js/jagex2/graphics/RenderMode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum RenderMode {
CPU = 0,
CPU_WF = 1, // wireframe
GPU = 2,
}
GPU = 2
}

0 comments on commit 59447f0

Please sign in to comment.