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