main :: (args) => {
ouit.init("main_canvas", handle_event, update, draw);
ouit.start();
+
+ t: thread.Thread;
+ thread.spawn(^t, null, (_) => {
+ i := 0;
+ while true {
+ use package core.intrinsics.atomics
+ i += 1;
+
+ __atomic_wait(cast(^i32) null, 0, 1000000000);
+ printf("Count: {}\n", i);
+ }
+ });
}
x: f32 = 0;
gl.clearColor(.1, .1, .1, 1);
gl.clear(gl.COLOR_BUFFER_BIT);
- gfx.rect(.{ x, y }, .{ 50, 50 }, .{ 1, 1, 1 });
+ gfx.rect(.{ x, y }, .{ 50, 50 }, .{ 1, 0, 0 });
gfx.flush();
}
\ No newline at end of file