Testing new structure

This commit is contained in:
2025-11-18 20:17:02 +01:00
parent e031f9bcef
commit 6e8ca5535e
2 changed files with 26 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
use osui::Node;
fn app() -> Node {
Box::new(|renderer| {
renderer.draw_text("Hello, World!", 10, 0).unwrap();
})
}
fn main() {
let mut osui = osui::Osui::new(Box::new(app));
loop {
osui.render().unwrap();
}
}