aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/window.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-04-02 09:19:32 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-04-02 09:19:32 +0100
commitaa67c8bb56cb750ac83ecbd361439f5ecb5e12d9 (patch)
treef1517a86654cf5457fa0b3aa6cfaea4bfa4eef36 /include/YAGE/window.hpp
parent21a147c3c1c2fad2819fe76becab320c51eb131f (diff)
downloadYAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.tar.gz
YAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.zip
Renamed includes
Diffstat (limited to 'include/YAGE/window.hpp')
-rw-r--r--include/YAGE/window.hpp30
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