creating uxn implementation without global state.
This commit is contained in:
1 parent
b11227d947
commit
45fe345074
3 files changed
+794
-1
No files matched your search
@@ -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