2022-06-10 20:43:33 +10:00
|
|
|
#![allow(clippy::single_match)]
|
|
|
|
|
2020-09-10 11:58:30 +10:00
|
|
|
use simple_logger::SimpleLogger;
|
2019-06-22 01:33:15 +10:00
|
|
|
use winit::{event_loop::EventLoop, window::WindowBuilder};
|
2018-06-17 00:14:12 +10:00
|
|
|
|
|
|
|
fn main() {
|
2020-09-10 11:58:30 +10:00
|
|
|
SimpleLogger::new().init().unwrap();
|
2019-02-06 02:30:33 +11:00
|
|
|
let event_loop = EventLoop::new();
|
|
|
|
let window = WindowBuilder::new().build(&event_loop).unwrap();
|
2019-06-18 08:13:35 +10:00
|
|
|
|
2019-10-06 00:49:24 +10:00
|
|
|
dbg!(window.available_monitors().collect::<Vec<_>>());
|
2019-06-18 08:13:35 +10:00
|
|
|
dbg!(window.primary_monitor());
|
2018-06-17 00:14:12 +10:00
|
|
|
}
|