mini_gl_fb/examples/window.rs
2018-05-29 23:33:20 -04:00

9 lines
221 B
Rust

extern crate mini_gl_fb;
fn main() {
let mut fb = mini_gl_fb::gotta_go_fast("Hello world!", 800, 600);
let buffer = vec![[128u8, 0, 0, 255]; 800 * 600];
fb.update_buffer(&buffer);
fb.persist();
}