diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-24 00:25:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 00:25:31 +0100 |
commit | a326354ea6fccf76665a4212bf14daeba0f52ec8 (patch) | |
tree | 18cd2deb0c30b38d8ca7c5305735d2323259e020 /include/YAGE/window.hpp | |
parent | 0a49874288f92c120d7e165550eb6dbbe1ef7307 (diff) | |
parent | 5403490b941f7c031bf1aafdb91b1098f69edbf2 (diff) | |
download | YAGE-a326354ea6fccf76665a4212bf14daeba0f52ec8.tar.gz YAGE-a326354ea6fccf76665a4212bf14daeba0f52ec8.zip |
Merge pull request #3 from ymherklotz/developv0.1.0
Merge develop to master
Diffstat (limited to 'include/YAGE/window.hpp')
-rw-r--r-- | include/YAGE/window.hpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/YAGE/window.hpp b/include/YAGE/window.hpp index c2003a94..51b217f8 100644 --- a/include/YAGE/window.hpp +++ b/include/YAGE/window.hpp @@ -13,7 +13,8 @@ #include <string> -namespace yage { +namespace yage +{ // window flags that can change it's appearance enum WindowFlags : unsigned { @@ -24,23 +25,24 @@ enum WindowFlags : unsigned { }; // window wrapper around SDL_Window pointer -class Window { +class Window +{ private: /// window handle - SDL_Window* window_ = nullptr; + SDL_Window *window_ = nullptr; public: Window(); - Window(const Window&) = delete; - Window(Window&&) = delete; + Window(const Window &) = delete; + Window(Window &&) = delete; /// destroys the window handle ~Window(); - Window& operator=(const Window&) = delete; - Window& operator=(Window&&) = delete; + Window &operator=(const Window &) = delete; + Window &operator=(Window &&) = delete; /// create the window, initialize the handle and update the width and height - void create(const std::string& window_name, int width, int height, + void create(const std::string &window_name, int width, int height, unsigned flags = WindowFlags::SHOWN); /// swap the buffer void swapBuffer(); @@ -48,6 +50,6 @@ public: void clearBuffer(); }; -} // namespace yage +} // namespace yage #endif |