summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-17 01:02:01 +0100
committerNao Pross <naopross@thearcway.org>2018-12-17 01:02:01 +0100
commit122644bb1e07be36bc25871f2953b9090777f252 (patch)
tree46c76d0117005b12416e107de0ffc5dc5db12d6d /src/main.rs
parentCreate basic structure (diff)
downloadSubconscious-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.rs7
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();
}