aboutsummaryrefslogtreecommitdiffstats
path: root/include/yage/window.hpp
diff options
context:
space:
mode:
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