feat: basic scenegraph, node, and spatial

This commit is contained in:
Nova
2022-05-16 14:19:08 -04:00
parent 888e60b8a2
commit cbfd4c13c2
10 changed files with 197 additions and 7 deletions

View File

@@ -1,8 +1,19 @@
mod core;
mod nodes;
use self::core::eventloop::EventLoop;
use ctrlc;
use std::sync::mpsc::channel;
fn main() {
let (tx, rx) = channel();
ctrlc::set_handler(move || tx.send(()).expect("Could not send signal on channel."))
.expect("Error setting Ctrl-C handler");
println!("Setting up Stardust socket...");
let event_loop = EventLoop::new(None).expect("Couldn't create server socket");
println!("Stardust socket created at {}", event_loop.socket_path);
rx.recv().expect("Could not receive from channel.");
}