Skip to content

Instantly share code, notes, and snippets.

@Nercury
Created January 7, 2017 20:00
Show Gist options
  • Save Nercury/d74c5ff222330ec8357a80f023141f3f to your computer and use it in GitHub Desktop.
Save Nercury/d74c5ff222330ec8357a80f023141f3f to your computer and use it in GitHub Desktop.
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