2022-10-28 04:23:03 +00:00
|
|
|
use glium::glutin::event_loop::EventLoopBuilder;
|
|
|
|
|
2022-10-28 02:15:47 +00:00
|
|
|
pub mod gl;
|
|
|
|
pub mod ipc;
|
|
|
|
pub mod window;
|
2022-10-28 00:12:12 +00:00
|
|
|
|
|
|
|
fn main() -> std::io::Result<()> {
|
2022-10-28 04:23:03 +00:00
|
|
|
let event_loop = EventLoopBuilder::<window::WindowMessage>::with_user_event().build();
|
|
|
|
let window_sender = event_loop.create_proxy();
|
2022-10-28 04:52:42 +00:00
|
|
|
let (ipc, ipc_sender) = ipc::Ipc::new(window_sender)?;
|
2022-10-28 04:23:03 +00:00
|
|
|
let _ipc_thread = std::thread::spawn(|| ipc.run());
|
|
|
|
let window_store = window::WindowStore::new(ipc_sender);
|
2022-10-29 05:22:36 +00:00
|
|
|
window_store.run(event_loop)
|
2022-10-28 00:12:12 +00:00
|
|
|
}
|