This commit is contained in:
dylan
2023-05-05 16:02:23 -07:00
parent f2b5978cae
commit 6c9710d4d9
5 changed files with 177 additions and 56 deletions

View File

@ -6,7 +6,7 @@ import {
export {mainloop} from "./deps.ts";
import { palette } from "./colors.ts";
const window = createWindow({
export const gameWindow = createWindow({
title: "Faux",
width: 1024,
height: 1024,
@ -160,5 +160,5 @@ export const frame = () => {
gl.EnableVertexAttribArray(0);
gl.EnableVertexAttribArray(1);
gl.DrawArrays(gl.TRIANGLES, 0, 6*pixelsPerRow*pixelsPerRow);
window.swapBuffers();
gameWindow.swapBuffers();
}