Skip to content

Instantly share code, notes, and snippets.

@nabijaczleweli
Forked from skorezore/gist:3ba8e9341d75834eb832
Last active January 26, 2016 20:26
Show Gist options
  • Save nabijaczleweli/fe0846943352b1cabe2b to your computer and use it in GitHub Desktop.
Save nabijaczleweli/fe0846943352b1cabe2b 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