diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:15:30 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:15:30 +0100 |
commit | 21a147c3c1c2fad2819fe76becab320c51eb131f (patch) | |
tree | 9114123be1d9165a199d8b27af8f9b4e00333e71 /include/yage/window.hpp | |
download | YAGE-21a147c3c1c2fad2819fe76becab320c51eb131f.tar.gz YAGE-21a147c3c1c2fad2819fe76becab320c51eb131f.zip |
Adding initial files
Diffstat (limited to 'include/yage/window.hpp')
-rw-r--r-- | include/yage/window.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/yage/window.hpp b/include/yage/window.hpp new file mode 100644 index 00000000..6f3058e9 --- /dev/null +++ b/include/yage/window.hpp @@ -0,0 +1,30 @@ +#ifndef WINDOW_HPP +#define WINDOW_HPP + +#include <SDL2/SDL.h> + +#include <string> + +enum class WindowFlags +{ + SHOWN=0x1, + HIDDEN=0x2, + FULLSCREEN=0x4, + BORDERLESS=0x8, +}; + +class Window +{ +private: + SDL_Window *window_=nullptr; + int width_=1280; + int height_=720; + +public: + Window(); + ~Window(); + + void create(const std::string &window_name, int width, int height, WindowFlags flags=WindowFlags::SHOWN); +}; + +#endif |