Skip to content

FuriouZz/deno_winit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno + Winit

winit binding for deno

Example

import { Window, EventLoop } from "./mod.ts";

const eventLoop = new EventLoop();
const window = new Window(eventLoop, {
  title: "hello world",
});

for await (const event of eventLoop.pollEvents()) {
  window.onEvent(event);
  console.log(event);
  if (window.closed) break;
}

Related

Inspiration

About

winit binding for deno

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published