creating uxn implementation without global state.

This commit is contained in:
JJ Bliss
2026-04-24 16:33:09 -04:00
parent b11227d947
commit 45fe345074
3 changed files with 794 additions and 1 deletions
+2
View File
@@ -2,6 +2,7 @@ use sdl3;
use sdl3::image;
use sdl3::ttf;
use types::c;
use uxn;
def WIDTH = 640;
def HEIGHT = 480;
@@ -46,6 +47,7 @@ export fn main() void = {
let run = true;
let ev = sdl3::Event { ... };
uxn::uxnrun();
for (run) {
for (sdl3::PollEvent(&ev)) {
if (ev.event_type == sdl3::EventType::QUIT) {