Skip to content

Commit c86235b

Browse files
committed
chore: bump deps
1 parent db970ef commit c86235b

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ callback ([DWM](https://github.com/deno-windowing/dwm) handles both).
2323

2424
```ts
2525
// GLES2 3.2 API
26-
import * as gl from "https://deno.land/x/[email protected].1/api/gles23.2.ts";
26+
import * as gl from "https://deno.land/x/[email protected].2/api/gles23.2.ts";
2727

2828
// Initialize function pointers
2929
gl.load(yourGetProcAddress);
@@ -53,10 +53,10 @@ Extensions:
5353
## Maintainers
5454

5555
- Dj ([@DjDeveloperr](https://github.com/DjDeveloperr))
56-
- Loading ([@load1n9](https://github.com/load1n9))
56+
- Dean Srebnik ([@load1n9](https://github.com/load1n9))
5757

5858
## License
5959

6060
[Apache-2.0](./LICENSE) licensed.
6161

62-
Copyright 2023 © The Deno Windowing Team
62+
Copyright 2024 © The Deno Windowing Team

examples/babylon.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Game extends World {
2727
camera.setTarget(BABYLON.Vector3.Zero());
2828

2929
// This attaches the camera to the canvas
30-
camera.attachControl(window, true);
30+
camera.attachControl(globalThis, true);
3131

3232
// This creates a light, aiming 0,1,0 - to the sky (non-mesh)
3333
const light = new BABYLON.HemisphericLight(

examples/triangle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
createWindow,
33
getProcAddress,
44
mainloop,
5-
} from "https://deno.land/x/[email protected].3/mod.ts";
5+
} from "https://deno.land/x/[email protected].4/mod.ts";
66
import * as gl from "../api/gles23.2.ts";
77

88
const window = createWindow({

src/webgl/canvas.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@ import {
1010
import "./renderingContext.ts";
1111

1212
export class WebGLCanvas extends HTMLElement {
13-
window: DwmWindow;
13+
win: DwmWindow;
1414
#context: WebGLRenderingContext;
1515

1616
constructor(options: CreateWindowOptions) {
1717
super();
18-
this.window = createWindow(Object.assign({
18+
this.win = createWindow(Object.assign({
1919
glVersion: [2, 0],
2020
gles: true,
2121
}, options));
22-
this.#context = new WebGLRenderingContext(this.window);
22+
this.#context = new WebGLRenderingContext(this.win);
2323
}
2424

2525
get width() {
26-
const size = this.window.size;
26+
const size = this.win.size;
2727
return size.width;
2828
}
2929

3030
set width(width: number) {
31-
const size = this.window.size;
31+
const size = this.win.size;
3232
size.width = width;
33-
this.window.size = size;
33+
this.win.size = size;
3434
}
3535

3636
get height() {
37-
const size = this.window.size;
37+
const size = this.win.size;
3838
return size.height;
3939
}
4040

4141
set height(height: number) {
42-
const size = this.window.size;
42+
const size = this.win.size;
4343
size.height = height;
44-
this.window.size = size;
44+
this.win.size = size;
4545
}
4646

4747
getContext(contextId: "webgl"): WebGLRenderingContext;
@@ -77,7 +77,7 @@ export class WebGLCanvas extends HTMLElement {
7777

7878
async run() {
7979
await mainloop(() => {
80-
this.window.swapBuffers();
80+
this.win.swapBuffers();
8181
}, false);
8282
}
8383
}

src/webgl/deps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/x/[email protected].3/mod.ts";
1+
export * from "https://deno.land/x/[email protected].5/mod.ts";

0 commit comments

Comments
 (0)