creating uxn implementation without global state.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user