2018-05-30 12:48:20 +10:00
|
|
|
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);
|
2018-05-30 13:33:20 +10:00
|
|
|
fb.persist();
|
2018-05-30 12:48:20 +10:00
|
|
|
}
|