diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
commit | 31317175d72c62994b98a93e1b827633b4de9cb2 (patch) | |
tree | 91e9f1068da03a7a5419c44a927a30ff7d29235c /include/YAGE/window.hpp | |
parent | 67770ad6b1fcbc6730c140b0d3edd3fc9efbdc7b (diff) | |
download | YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.tar.gz YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.zip |
Fixing constructors and destructors
Diffstat (limited to 'include/YAGE/window.hpp')
-rw-r--r-- | include/YAGE/window.hpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/include/YAGE/window.hpp b/include/YAGE/window.hpp index 98ba2592..beefae3d 100644 --- a/include/YAGE/window.hpp +++ b/include/YAGE/window.hpp @@ -28,25 +28,28 @@ enum WindowFlags : unsigned // window wrapper around SDL_Window pointer class Window { -public: // member variables private: - // window handle + /// window handle SDL_Window *window_=nullptr; -public: // member functions +public: Window(); - // destroys the window handle - ~Window(); + Window(const Window&)=delete; + Window(Window&&)=delete; + /// destroys the window handle + ~Window(); - // create the window, initialize the handle and update the width and height + 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, unsigned flags=WindowFlags::SHOWN); - // swap the buffer + /// swap the buffer void swapBuffer(); - // clear buffer + /// clear buffer void clearBuffer(); -private: }; -} // yage +} // namespace yage #endif |