Skip to content

Instantly share code, notes, and snippets.

@nabijaczleweli
Last active January 26, 2016 20:39
Show Gist options
  • Save nabijaczleweli/95f8b26d2c55e7e6d24e to your computer and use it in GitHub Desktop.
Save nabijaczleweli/95f8b26d2c55e7e6d24e to your computer and use it in GitHub Desktop.
window::window(unsigned int width, unsigned int height, const std::string& title, bool fullscreen, bool resizable)
: window_impl_(std::make_unique<window_impl>(width, height, title, fullscreen, resizable)) {
if (reference_count > 0) throw std::runtime_error("Multiple windows aren't yet supported.");
++reference_count;
current_window.reset(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment