diff --git a/src/main.rs b/src/main.rs index e7a11a9..3eb4a0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,11 @@ +use raylib::prelude::*; fn main() { - println!("Hello, world!"); + let (mut rl, thread) = raylib::init().size(640, 480).title("Hello, World").build(); + + while !rl.window_should_close() { + let mut d = rl.begin_drawing(&thread); + + d.clear_background(Color::WHITE); + d.draw_text("Hello, world!", 12, 12, 20, Color::BLACK); + } }