From c86235b81832f3d3bd797eebf09932192a1bf4ac Mon Sep 17 00:00:00 2001 From: Dean Srebnik <49134864+load1n9@users.noreply.github.com> Date: Wed, 24 Jan 2024 08:52:00 -0500 Subject: [PATCH] chore: bump deps --- README.md | 6 +++--- examples/babylon.ts | 2 +- examples/triangle.ts | 2 +- src/webgl/canvas.ts | 20 ++++++++++---------- src/webgl/deps.ts | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 34ef5ef..841b1bb 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ callback ([DWM](https://github.com/deno-windowing/dwm) handles both). ```ts // GLES2 3.2 API -import * as gl from "https://deno.land/x/gluten@0.1.1/api/gles23.2.ts"; +import * as gl from "https://deno.land/x/gluten@0.1.2/api/gles23.2.ts"; // Initialize function pointers gl.load(yourGetProcAddress); @@ -53,10 +53,10 @@ Extensions: ## Maintainers - Dj ([@DjDeveloperr](https://github.com/DjDeveloperr)) -- Loading ([@load1n9](https://github.com/load1n9)) +- Dean Srebnik ([@load1n9](https://github.com/load1n9)) ## License [Apache-2.0](./LICENSE) licensed. -Copyright 2023 © The Deno Windowing Team +Copyright 2024 © The Deno Windowing Team diff --git a/examples/babylon.ts b/examples/babylon.ts index 78e9c8c..db47649 100644 --- a/examples/babylon.ts +++ b/examples/babylon.ts @@ -27,7 +27,7 @@ class Game extends World { camera.setTarget(BABYLON.Vector3.Zero()); // This attaches the camera to the canvas - camera.attachControl(window, true); + camera.attachControl(globalThis, true); // This creates a light, aiming 0,1,0 - to the sky (non-mesh) const light = new BABYLON.HemisphericLight( diff --git a/examples/triangle.ts b/examples/triangle.ts index 8ab929c..3b20433 100644 --- a/examples/triangle.ts +++ b/examples/triangle.ts @@ -2,7 +2,7 @@ import { createWindow, getProcAddress, mainloop, -} from "https://deno.land/x/dwm@0.3.3/mod.ts"; +} from "https://deno.land/x/dwm@0.3.4/mod.ts"; import * as gl from "../api/gles23.2.ts"; const window = createWindow({ diff --git a/src/webgl/canvas.ts b/src/webgl/canvas.ts index e2a07cf..9fd6790 100644 --- a/src/webgl/canvas.ts +++ b/src/webgl/canvas.ts @@ -10,38 +10,38 @@ import { import "./renderingContext.ts"; export class WebGLCanvas extends HTMLElement { - window: DwmWindow; + win: DwmWindow; #context: WebGLRenderingContext; constructor(options: CreateWindowOptions) { super(); - this.window = createWindow(Object.assign({ + this.win = createWindow(Object.assign({ glVersion: [2, 0], gles: true, }, options)); - this.#context = new WebGLRenderingContext(this.window); + this.#context = new WebGLRenderingContext(this.win); } get width() { - const size = this.window.size; + const size = this.win.size; return size.width; } set width(width: number) { - const size = this.window.size; + const size = this.win.size; size.width = width; - this.window.size = size; + this.win.size = size; } get height() { - const size = this.window.size; + const size = this.win.size; return size.height; } set height(height: number) { - const size = this.window.size; + const size = this.win.size; size.height = height; - this.window.size = size; + this.win.size = size; } getContext(contextId: "webgl"): WebGLRenderingContext; @@ -77,7 +77,7 @@ export class WebGLCanvas extends HTMLElement { async run() { await mainloop(() => { - this.window.swapBuffers(); + this.win.swapBuffers(); }, false); } } diff --git a/src/webgl/deps.ts b/src/webgl/deps.ts index 16121be..24496c7 100644 --- a/src/webgl/deps.ts +++ b/src/webgl/deps.ts @@ -1 +1 @@ -export * from "https://deno.land/x/dwm@0.3.3/mod.ts"; +export * from "https://deno.land/x/dwm@0.3.5/mod.ts";