diff options
author | Nao Pross <naopross@thearcway.org> | 2018-12-17 01:02:01 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-12-17 01:02:01 +0100 |
commit | 122644bb1e07be36bc25871f2953b9090777f252 (patch) | |
tree | 46c76d0117005b12416e107de0ffc5dc5db12d6d /src/main.rs | |
parent | Create basic structure (diff) | |
download | Subconscious-rs-122644bb1e07be36bc25871f2953b9090777f252.tar.gz Subconscious-rs-122644bb1e07be36bc25871f2953b9090777f252.zip |
Add window in a graphics thread
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8de52c0..2679ac4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,5 +4,10 @@ mod graphics; fn main() { game::start(); - graphics::start(); + + let graphics_thread = std::thread::spawn(move || { + graphics::start(); + }); + + graphics_thread.join().unwrap(); } |