Unable to Compile Shaders #11
-
Howdy...came across your lib, and I'm wanting to port an Android game I've been working on to Deno/TS using a GL window (no browser.) Whenever I attempt to run this example (or any example): import { Rectangle, Scene, World } from "https://deno.land/x/caviar/mod.ts";
class Game extends Scene {
setup() {
const rect = new Rectangle(20, 20, 50, 50, "#0000ff");
this.addChild(rect);
}
}
const test = new World({
title: "test",
width: 800,
height: 600,
resizable: true,
}, [Game]);
await test.start(); I get the following error:
Any ideas? This isn't a JavaScript only/TypeScript only issue. It happens if I attempt to use any display mechanism other than the browser. EDIT: I'm pretty unfamiliar with the whole non-browser-GL thing, but I am more than comfortable learning something new. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
caviar is a little rusty right now ill have to move it from GL to WebGPU in deno, I would check out https://github.com/deno-windowing/dwm for the canvas API for now |
Beta Was this translation helpful? Give feedback.
caviar is a little rusty right now ill have to move it from GL to WebGPU in deno, I would check out https://github.com/deno-windowing/dwm for the canvas API for now