Created
January 7, 2017 20:00
-
-
Save Nercury/d74c5ff222330ec8357a80f023141f3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let mut window = Window::new(WindowOptions { | |
gl_version: GLVersion::Core((4, 1)), | |
title: "Startup Incubator".to_string(), | |
initial_size: (1024, 720), | |
vsync: true, | |
}); | |
let mut renderer = renderer_gl::renderloop::Loop::new(); | |
let render_proxy = renderer.take_proxy(); | |
let input = window.take_input(); | |
let game_thread = thread::spawn(move || { | |
game::game::Game::new(input, render_proxy).run(); | |
}); | |
window.run(renderer); | |
game_thread.join().unwrap(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment