From 55329690d185c57ac12c1080745df06efb60a4f7 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sat, 29 Apr 2023 19:33:49 +0300 Subject: [PATCH] raylib gui template ignore this for now --- src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); + } }