-
-
Save nabijaczleweli/95f8b26d2c55e7e6d24e to your computer and use it in GitHub Desktop.
This file contains 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
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