Testing new structure
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user