raylib gui template ignore this for now
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -1,3 +1,11 @@
|
|||||||
|
use raylib::prelude::*;
|
||||||
fn main() {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user