initial
This commit is contained in:
commit
37febeafc3
4 changed files with 329 additions and 0 deletions
12
src/main.rs
Normal file
12
src/main.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use raylib::prelude::*;
|
||||
|
||||
fn main() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue