crosvm/gpu_display/examples/simple.rs

12 lines
278 B
Rust
Raw Normal View History

extern crate gpu_display;
use gpu_display::*;
fn main() {
let mut disp = GpuDisplay::new("/run/wayland-0").unwrap();
let surface_id = disp.create_surface(None, 1280, 1024).unwrap();
while !disp.close_requested(surface_id) {
disp.dispatch_events();
}
}